You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StringExtensions.cs 339B

1234567891011121314
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace Sdbarker.Extensions.RouteCollectionExtensions
  6. {
  7. public static class StringExtensions
  8. {
  9. public static string RemoveLastInstanceOf(this string text, string remove) {
  10. return text.Remove(text.LastIndexOf(remove));
  11. }
  12. }
  13. }