JsonElement.Equals Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| Equals(object) | Determines whether the specified object is equal to the current JsonElement. |
| Equals(T) | Determines whether the current JsonElement is equal to another JsonElement-like value through deep comparison. |
Equals(object)
Source: JsonElement.cs
Determines whether the specified object is equal to the current JsonElement.
public override bool Equals(object obj)
Parameters
| Name | Type | Description |
|---|---|---|
obj |
object |
The object to compare with the current JsonElement. |
Returns
true if the specified object is equal to the current JsonElement; otherwise, false.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Equals(T)
Source: JsonElement.cs
Determines whether the current JsonElement is equal to another JsonElement-like value through deep comparison.
public bool Equals<T>(T other)
where T : struct, IJsonElement
Type Parameters
| Parameter | Description |
|---|---|
T |
The type of the other JSON element that implements IJsonElement. |
Parameters
| Name | Type | Description |
|---|---|---|
other |
T |
The JSON element to compare with this JsonElement. |
Returns
true if the current JsonElement is equal to the other parameter; otherwise, false.
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