11 lines
356 B
C#
11 lines
356 B
C#
|
namespace System;
|
||
|
|
||
|
public static class StringExtensions
|
||
|
{
|
||
|
public static bool EqualsAnyCase(this string str, string? other)
|
||
|
=> str.Equals(other, StringComparison.InvariantCultureIgnoreCase);
|
||
|
|
||
|
public static bool StartsWithAnyCase(this string str, string other)
|
||
|
=> str.StartsWith(other, StringComparison.InvariantCultureIgnoreCase);
|
||
|
}
|