C# Class Machine.Mta.TypeHelpers

Mostra file Open project: machine/machine.mta

Public Methods

Method Description
AllGenericVariations ( this type, Type genericType ) : IEnumerable
BiggerThan ( this types, Type target ) : IEnumerable
Interfaces ( this type ) : IEnumerable
IsGenericlyCompatible ( this type1, Type type2 ) : bool
IsImplementationOfGenericType ( this type, Type genericType ) : bool
SmallerType ( this types ) : Type

Private Methods

Method Description
CompareGenericParameterTypes ( Type type1, Type type2 ) : Int32
CompareTypes ( Type type1, Type type2 ) : Int32

Method Details

AllGenericVariations() public static method

public static AllGenericVariations ( this type, Type genericType ) : IEnumerable
type this
genericType System.Type
return IEnumerable

BiggerThan() public static method

public static BiggerThan ( this types, Type target ) : IEnumerable
types this
target System.Type
return IEnumerable

Interfaces() public static method

public static Interfaces ( this type ) : IEnumerable
type this
return IEnumerable

IsGenericlyCompatible() public static method

public static IsGenericlyCompatible ( this type1, Type type2 ) : bool
type1 this
type2 System.Type
return bool

IsImplementationOfGenericType() public static method

public static IsImplementationOfGenericType ( this type, Type genericType ) : bool
type this
genericType System.Type
return bool

SmallerType() public static method

public static SmallerType ( this types ) : Type
types this
return System.Type