System.ExtensionMethods.Contains C# (CSharp) Method

Contains() public static method

public static Contains ( this @this, string value, System.StringComparison comparisonType ) : bool
@this this
value string
comparisonType System.StringComparison
return bool
        public static bool Contains(this string @this, string value, StringComparison comparisonType)
            => @this.IndexOf(value, comparisonType) != -1;
    }