 | StringExtensionsSameAs Method |
Compares two strings.
Namespace:
CSScriptLib
Assembly:
CSScriptLib (in CSScriptLib.dll) Version: 1.3.2.0
Syntaxpublic static bool SameAs(
this string text,
string pattern,
bool ignoreCase = true
)
Parameters
- text
- Type: SystemString
The text. - pattern
- Type: SystemString
The pattern. - ignoreCase (Optional)
- Type: SystemBoolean
if set to true [ignore case].
Return Value
Type:
Boolean[Missing <returns> documentation for "M:CSScriptLib.StringExtensions.SameAs(System.String,System.String,System.Boolean)"]
Usage 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).
See Also