JsonPointer.ValueEquals Method
Definition
Namespace: Corvus.Text.Json.Patch
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| ValueEquals(ReadOnlySpan<byte>) | Compare with a UTF-8 string. |
| ValueEquals(ReadOnlySpan<char>) | Compare with a string. |
| ValueEquals(string) | Compare with a string. |
ValueEquals(ReadOnlySpan<byte>)
Compare with a UTF-8 string.
public bool ValueEquals(ReadOnlySpan<byte> utf8Text)
Parameters
| Name | Type | Description |
|---|---|---|
utf8Text |
ReadOnlySpan<byte> |
Returns
true if the values are equal.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
ValueEquals(ReadOnlySpan<char>)
Compare with a string.
public bool ValueEquals(ReadOnlySpan<char> text)
Parameters
| Name | Type | Description |
|---|---|---|
text |
ReadOnlySpan<char> |
Returns
true if the values are equal.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
ValueEquals(string)
Compare with a string.
public bool ValueEquals(string text)
Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
Returns
true if the values are equal.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue