StringSegmentStartsWith(String, StringComparison) Method
Gets whether this
StringSegment instance starts with the specified
value
using the specified
comparison.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public bool StartsWith(
string value,
StringComparison comparison = StringComparison.Ordinal
)
Public Function StartsWith (
value As String,
Optional comparison As StringComparison = StringComparison.Ordinal
) As Boolean
public:
bool StartsWith(
String^ value,
StringComparison comparison = StringComparison::Ordinal
)
member StartsWith :
value : string *
?comparison : StringComparison
(* Defaults:
let _comparison = defaultArg comparison StringComparison.Ordinal
*)
-> bool
- value String
- The string to compare.
- comparison StringComparison (Optional)
- A StringComparison value that specifies how to perform the comparison. This parameter is optional.
Default value: Ordinal.
Boolean if this
StringSegment begins with
value; otherwise,
.