Search Results for

    Show / Hide Table of Contents

    Class TypeExtensions

    Extension methods for Type.

    Inheritance
    object
    TypeExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Common.Helpers
    Assembly: Evergine.Common.dll
    Syntax
    public static class TypeExtensions

    Methods

    GetAllInstances<T>(Assembly, (Type type, object instance)[], params string[])

    Finds and instances the specified types in the given assembly, using the parameters for call to the constructor.

    Declaration
    public static IEnumerable<T> GetAllInstances<T>(this Assembly assembly, (Type type, object instance)[] constructorParameters, params string[] typeNames)
    Parameters
    Type Name Description
    Assembly assembly

    The assembly to find the types.

    (Type type, object instance)[] constructorParameters

    The parameters used to find a matching constructor.

    string[] typeNames

    The type names.

    Returns
    Type Description
    IEnumerable<T>

    The enumerable of instances.

    Type Parameters
    Name Description
    T

    The base type.

    GetSimpleAssemblyQualifiedName(Type)

    Get assembly qualified name, but without the version and public token.

    Declaration
    public static string GetSimpleAssemblyQualifiedName(this Type type)
    Parameters
    Type Name Description
    Type type

    Type to get name for.

    Returns
    Type Description
    string

    Simple assembly qualified name. Example:

    "MyAssembly.MyNamespace.MyClass, MyAssembly"
    In This Article
    Back to top
    Generated by DocFX