 | ExtensionMethodskEqualsIgnoreCase Method |
compare strings ignoring case.
Namespace:
Koden.Utils.Extensions
Assembly:
Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntaxpublic static bool kEqualsIgnoreCase(
this string source,
string other,
bool useOrdinalComparison = true
)
<ExtensionAttribute>
Public Shared Function kEqualsIgnoreCase (
source As String,
other As String,
Optional useOrdinalComparison As Boolean = true
) As Boolean
public:
[ExtensionAttribute]
static bool kEqualsIgnoreCase(
String^ source,
String^ other,
bool useOrdinalComparison = true
)
[<ExtensionAttribute>]
static member kEqualsIgnoreCase :
source : string *
other : string *
?useOrdinalComparison : bool
(* Defaults:
let _useOrdinalComparison = defaultArg useOrdinalComparison true
*)
-> bool
Parameters
- source
- Type: SystemString
The source. - other
- Type: SystemString
The other. - useOrdinalComparison (Optional)
- Type: SystemBoolean
if set to true [use ordinal comparison].
Return Value
Type:
BooleanTrue if string equals other, else
falseUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions
See Also