Exemple #1
0
 /// <summary>
 /// Checks if this string contains at least one of the strings. Uses default Ordinal comparison.
 /// </summary>
 /// <param name="strings">Strings to check against.</param>
 /// <returns>True if at least one string is contained in this string.</returns>
 public bool Contains(params string[] strings)
 {
     return(ResourceStaticAnalysisToolbox.Contains(this.Value, StringComparison.Ordinal, strings));
 }
Exemple #2
0
 /// <summary>
 /// Checks if this string contains at least one of the strings.
 /// </summary>
 /// <param name="comparisonType">Type of string comparison to be used.</param>
 /// <param name="strings">Strings to check against.</param>
 /// <returns>True if at least one string is contained in this string.</returns>
 public bool Contains(StringComparison comparisonType, params string[] strings)
 {
     return(ResourceStaticAnalysisToolbox.Contains(this.Value, comparisonType, strings));
 }