Exemplo n.º 1
0
 public static bool EqualsOrdinalIgnoreCase(this string s, string value)
 {
     ThrowIf.ArgumentNull(s, nameof(s));
     return(s.Equals(value, StringComparison.OrdinalIgnoreCase));
 }
Exemplo n.º 2
0
 public static string ToStringInvariant(this IFormattable value, string format = null)
 {
     ThrowIf.ArgumentNull(value, nameof(value));
     return(value.ToString(format, CultureInfo.InvariantCulture));
 }
Exemplo n.º 3
0
 public static bool EndsWithOrdinal(this string s, string value)
 {
     ThrowIf.ArgumentNull(s, nameof(s));
     return(s.EndsWith(value, StringComparison.Ordinal));
 }