Search Results for

    Show / Hide Table of Contents

    Class ArrayExtensions

    Inheritance
    object
    ArrayExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9
    Assembly: Glitch9.dll
    Syntax
    public static class ArrayExtensions

    Methods

    | Edit this page View Source

    CopyWithExtras<T>(T[], params T[])

    Declaration
    public static T[] CopyWithExtras<T>(this T[] array, params T[] itemsToAdd)
    Parameters
    Type Name Description
    T[] array
    T[] itemsToAdd
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    FilterOut<T>(T[], params T[])

    Declaration
    public static T[] FilterOut<T>(this T[] array, params T[] itemsToRemove)
    Parameters
    Type Name Description
    T[] array
    T[] itemsToRemove
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Replace<T>(T[], T, T)

    Declaration
    public static void Replace<T>(this T[] array, T oldItem, T newItem)
    Parameters
    Type Name Description
    T[] array
    T oldItem
    T newItem
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    ToArrayOrEmpty<T>(T)

    Declaration
    public static T[] ToArrayOrEmpty<T>(this T item) where T : class
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    ToArrayOrNull<T>(T)

    Declaration
    public static T[] ToArrayOrNull<T>(this T item) where T : class
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    TrimEnd<T>(T[], int)

    Declaration
    public static T[] TrimEnd<T>(this T[] array, int count)
    Parameters
    Type Name Description
    T[] array
    int count
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    TrimStart<T>(T[], int)

    Declaration
    public static T[] TrimStart<T>(this T[] array, int count)
    Parameters
    Type Name Description
    T[] array
    int count
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Trim<T>(T[], int, int)

    Declaration
    public static T[] Trim<T>(this T[] array, int start, int end)
    Parameters
    Type Name Description
    T[] array
    int start
    int end
    Returns
    Type Description
    T[]
    Type Parameters
    Name Description
    T
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation