StringSegmentEndsWith(StringSegment, StringComparison) Method
Gets whether this
StringSegment instance ends with the specified
value
using the specified
comparison.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public bool EndsWith(
StringSegment value,
StringComparison comparison = StringComparison.Ordinal
)
Public Function EndsWith (
value As StringSegment,
Optional comparison As StringComparison = StringComparison.Ordinal
) As Boolean
public:
bool EndsWith(
StringSegment value,
StringComparison comparison = StringComparison::Ordinal
)
member EndsWith :
value : StringSegment *
?comparison : StringComparison
(* Defaults:
let _comparison = defaultArg comparison StringComparison.Ordinal
*)
-> bool
- value StringSegment
- The StringSegment 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 ends with
value; otherwise,
.