DynamicData.Equality(DynamicData, Object) Operator

Definition

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.

right
Object

The Object 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