Catel.StringExtensions.StartsWithIgnoreCase C# (CSharp) 메소드

StartsWithIgnoreCase() 공개 정적인 메소드

Determines whether the string starts with the value to check.
public static StartsWithIgnoreCase ( this str, string valueToCheck ) : bool
str this The string.
valueToCheck string The value to check.
리턴 bool
        public static bool StartsWithIgnoreCase(this string str, string valueToCheck)
        {
            var startsWith = str.StartsWith(valueToCheck, StringComparison.OrdinalIgnoreCase);
            return startsWith;
        }