Show / Hide Table of Contents

    Class CoreExtensions

    Inheritance
    Object
    CoreExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public static class CoreExtensions

    Methods

    GetDerivedFrom(Type)

    Declaration
    public static Type[] GetDerivedFrom(this Type entityType)
    Parameters
    Type Name Description
    Type entityType
    Returns
    Type Description
    Type[]

    InjectRecursive(Transform, IResolver)

    Method that allows injection recursively from a root transform.

    Declaration
    public static void InjectRecursive(this Transform root, IResolver resolver)
    Parameters
    Type Name Description
    Transform root
    IResolver resolver

    ToEnumerable<T>(T)

    Convert any object to an System.Collections.Generic.IEnumerable{T}. Useful for passing single objects as IEnumerable parameters.

    Declaration
    public static IEnumerable<T> ToEnumerable<T>(this T source)
    Parameters
    Type Name Description
    T source

    The object to convert.

    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T

    The Type of object the IEnumerable will contain.

    ToHashSet<T>(IEnumerable<T>, IEqualityComparer<T>)

    Convert any System.Collections.Generic.IEnumerable{T} of objects into a System.Collections.Generic.HashSet{T}.

    Declaration
    public static HashSet<T> ToHashSet<T>(this IEnumerable<T> source, IEqualityComparer<T> comparer = null)
    Parameters
    Type Name Description
    IEnumerable<T> source

    The collection of objects to convert.

    IEqualityComparer<T> comparer

    The comparer to use in the creation of the HashSet.

    Returns
    Type Description
    HashSet<T>
    Type Parameters
    Name Description
    T

    The Type of object the HashSet will contain.

    Back to top Copyright © 2020 East Side Games Inc.