Exemple #1
0
 /// <summary>
 /// Checks if this string equals any of the strings provided. Uses default Ordinal comparison.
 /// </summary>
 /// <param name="strings">Strings to check against.</param>
 /// <returns>True if at least one of the strings are equal to this string.</returns>
 public bool Equals(params string[] strings)
 {
     return(ResourceStaticAnalysisToolbox.Equals(this.Value, StringComparison.Ordinal, strings));
 }
Exemple #2
0
 /// <summary>
 /// Checks if this string equals any of the strings provided.
 /// </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 of the strings are equal to this string.</returns>
 public bool Equals(StringComparison comparisonType, params string[] strings)
 {
     return(ResourceStaticAnalysisToolbox.Equals(this.Value, comparisonType, strings));
 }