Super Bomber Kit
Search Results for

    Show / Hide Table of Contents

    Class ListExtensions

    Extensions for lists

    Inheritance
    object
    ListExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: BomberDogs.Extensions
    Assembly: Assembly-CSharp.dll
    Syntax
    public static class ListExtensions

    Methods

    | Edit this page View Source

    TryGet<T>(IReadOnlyList<T>, int)

    Try to get value in index otherwise returns null

    Declaration
    public static T TryGet<T>(this IReadOnlyList<T> list, int index)
    Parameters
    Type Name Description
    IReadOnlyList<T> list

    Target list

    int index

    Index of element

    Returns
    Type Description
    T

    Element

    Type Parameters
    Name Description
    T
    | Edit this page View Source

    TryGet<T>(List<T>, int)

    Try to get value in index otherwise returns null

    Declaration
    public static T TryGet<T>(this List<T> list, int index)
    Parameters
    Type Name Description
    List<T> list

    Target list

    int index

    Index of element

    Returns
    Type Description
    T

    element

    Type Parameters
    Name Description
    T
    • Edit this page
    • View Source
    In this article
    Back to top