Class SafetyChecks
Syntax
public static class SafetyChecks
Methods
AreEqual<A, B>(A, B)
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void AreEqual<A, B>(A value1, B value2)
where A : IEquatable<A> where B : IEquatable<B>
Parameters
| Type |
Name |
Description |
| A |
value1 |
|
| B |
value2 |
|
Type Parameters
AreNotEqual<A, B>(A, B)
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void AreNotEqual<A, B>(A value1, B value2)
where A : IEquatable<A> where B : IEquatable<B>
Parameters
| Type |
Name |
Description |
| A |
value1 |
|
| B |
value2 |
|
Type Parameters
CheckIndexAndThrow(Int32, Int32, Int32)
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void CheckIndexAndThrow(int index, int length, int min = 0)
Parameters
IsFalse(Boolean)
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void IsFalse(bool condition)
Parameters
| Type |
Name |
Description |
| Boolean |
condition |
|
IsTrue(Boolean)
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void IsTrue(bool condition)
Parameters
| Type |
Name |
Description |
| Boolean |
condition |
|
ThrowArgumentException(FixedString32, FixedString64)
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void ThrowArgumentException(in FixedString32 paramName, FixedString64 message = null)
Parameters
| Type |
Name |
Description |
| Unity.Collections.FixedString32 |
paramName |
|
| Unity.Collections.FixedString64 |
message |
|
ThrowInvalidOperationException(FixedString64)
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void ThrowInvalidOperationException(FixedString64 message = null)
Parameters
| Type |
Name |
Description |
| Unity.Collections.FixedString64 |
message |
|
ThrowNotImplementedException()
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void ThrowNotImplementedException()
ThrowNotSupportedException(FixedString64)
Declaration
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
public static void ThrowNotSupportedException(FixedString64 message = null)
Parameters
| Type |
Name |
Description |
| Unity.Collections.FixedString64 |
message |
|