Operator operator ==
operator ==(ArRecordingConfig, ArRecordingConfig)
Tests for equality. Same as Equals(ArRecordingConfig).
Declaration
public static bool operator ==(ArRecordingConfig lhs, ArRecordingConfig rhs)
Parameters
Type | Name | Description |
---|---|---|
ArRecordingConfig | lhs | The ArRecordingConfig to compare with |
ArRecordingConfig | rhs | The ArRecordingConfig to compare with |
Returns
Type | Description |
---|---|
bool | Returns |
operator ==(ArRecordingConfig?, ArRecordingConfig?)
Tests for equality.
Declaration
public static bool operator ==(ArRecordingConfig? lhs, ArRecordingConfig? rhs)
Parameters
Type | Name | Description |
---|---|---|
ArRecordingConfig? | lhs | The nullable ArRecordingConfig to compare with |
ArRecordingConfig? | rhs | The nullable ArRecordingConfig to compare with |
Returns
Type | Description |
---|---|
bool | Returns true if any of these conditions are met:
-
|
Remarks
This equality operator lets you to compare an ArRecordingConfig with null
to determine whether its
underlying pointer is null. This allows for a more natural comparison with the native ARCore object:
bool TestForNull(ArRecordingConfig obj)
{
if (obj == null)
{
// obj.AsIntPtr() is IntPtr.Zero
}
}