We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    Class ArrayExtensions

    Array type method extensions.

    Inheritance
    Object
    ArrayExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit
    Assembly: cs.temp.dll.dll
    Syntax
    public static class ArrayExtensions

    Methods

    IsValidArray(Array)

    Checks whether the given array is not null and has at least one entry

    Declaration
    public static bool IsValidArray(this Array array)
    Parameters
    Type Name Description
    Array array
    Returns
    Type Description
    Boolean

    WrapIndex(Array, Int32)

    Wraps the index around to the beginning of the array if the provided index is longer than the array.

    Declaration
    public static int WrapIndex(this Array array, int index)
    Parameters
    Type Name Description
    Array array

    The array to wrap the index around.

    Int32 index

    The index to look for.

    Returns
    Type Description
    Int32
    Back to top Generated by DocFX