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