DynamicData.Equality(DynamicData, Object) Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the specified DynamicData and Object have the same value.
public static bool operator == (Azure.Core.Serialization.DynamicData? left, object? right);
static member ( = ) : Azure.Core.Serialization.DynamicData * obj -> bool
Public Shared Operator == (left As DynamicData, right As Object) As Boolean
Parameters
- left
- DynamicData
The DynamicData to compare.
Returns
true
if the value of left
is the same as the value of right
; otherwise, false
.
Remarks
This operator calls through to Azure.Core.Serialization.DynamicData.Equals(System.Object) when DynamicData is on the left-hand side of the operation. Azure.Core.Serialization.DynamicData.Equals(System.Object) has value semantics when the DynamicData represents a JSON primitive, i.e. string, bool, number, or null, and reference semantics otherwise, i.e. for objects and arrays.
Please note that if DynamicData is on the right-hand side of a ==
operation, this operator will not be invoked. Because of this the result of a ==
comparison with null
on the left and a DynamicData instance on the right will return false
.
Applies to
Azure SDK for .NET