Class SafetyChecks | 2D Entities | 0.29.0-preview.3
docs.unity.cn
    Show / Hide Table of Contents

    Class SafetyChecks

    Inheritance
    Object
    SafetyChecks
    Namespace: Unity.U2D.Entities.Physics
    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
    Name Description
    A
    B

    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
    Name Description
    A
    B

    CheckIndexAndThrow(Int32, Int32, Int32)

    Declaration
    [Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]
    public static void CheckIndexAndThrow(int index, int length, int min = 0)
    Parameters
    Type Name Description
    Int32 index
    Int32 length
    Int32 min

    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
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 26 August 2020