public int LastIndexOf(string mainString, char charToCheckFor) { ValidatePublicArg.NotNull(mainString, "mainString"); return(mainString.LastIndexOf(charToCheckFor)); }
public int IndexOf(string mainString, string subStringToCheckFor) { ValidatePublicArg.NotNull(mainString, "mainString"); ValidatePublicArg.NotNull(subStringToCheckFor, "subStringToCheckFor"); return(mainString.IndexOf(subStringToCheckFor, this.stringComparison)); }
public int IndexOfAny(string mainString, char[] charsToCheckFor) { ValidatePublicArg.NotNull(mainString, "mainString"); ValidatePublicArg.NotNull(charsToCheckFor, "charsToCheckFor"); return(mainString.IndexOfAny(charsToCheckFor)); }
public bool EndsWith(string mainString, string subStringToCheckFor) { ValidatePublicArg.NotNull(mainString, "mainString"); ValidatePublicArg.NotNull(subStringToCheckFor, "subStringToCheckFor"); return(mainString.EndsWith(subStringToCheckFor, this.stringComparison)); }