Equals()

System::MemoryExtensions::Equals(const ReadOnlySpan<char16_t>&, const ReadOnlySpan<char16_t>&, StringComparison) function

Compares two ReadOnlySpan<char16_t> for equality using StringComparison.

bool System::MemoryExtensions::Equals(const ReadOnlySpan<char16_t> &span, const ReadOnlySpan<char16_t> &other, StringComparison comparisonType)

Arguments

ParameterTypeDescription
spanconst ReadOnlySpan<char16_t>&The first span to compare
otherconst ReadOnlySpan<char16_t>&The second span to compare
comparisonTypeStringComparisonThe string comparison type to use

Return Value

true if the spans are equal, false otherwise

See Also