Operator operator ==
operator ==(ArConfig, ArConfig)
Tests for equality. Same as Equals(ArConfig).
Declaration
public static bool operator ==(ArConfig lhs, ArConfig rhs)
Parameters
Type | Name | Description |
---|---|---|
ArConfig | lhs | The ArConfig to compare with |
ArConfig | rhs | The ArConfig to compare with |
Returns
Type | Description |
---|---|
bool | Returns |
operator ==(ArConfig?, ArConfig?)
Tests for equality.
Declaration
public static bool operator ==(ArConfig? lhs, ArConfig? rhs)
Parameters
Type | Name | Description |
---|---|---|
ArConfig? | lhs | The nullable ArConfig to compare with |
ArConfig? | rhs | The nullable ArConfig 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 ArConfig with null
to determine whether its
underlying pointer is null. This allows for a more natural comparison with the native ARCore object:
bool TestForNull(ArConfig obj)
{
if (obj == null)
{
// obj.AsIntPtr() is IntPtr.Zero
}
}