C# Class JilTests.ExtensionMethods

Exibir arquivo Open project: kevin-montrose/Jil

Public Methods

Method Description
GetConstructor ( this type, BindingFlags flags, Type parameterTypes ) : ConstructorInfo
GetGenericArguments ( this type ) : System.Type[]
GetMethod ( this type, string name, BindingFlags flags, Type parameterTypes ) : MethodInfo
GetProperties ( this type ) : IEnumerable
IsAssignableFrom ( this a, Type b ) : bool
IsGenericType ( this type ) : bool
IsValueType ( this type ) : bool

Method Details

GetConstructor() public static method

public static GetConstructor ( this type, BindingFlags flags, Type parameterTypes ) : ConstructorInfo
type this
flags BindingFlags
parameterTypes System.Type
return System.Reflection.ConstructorInfo

GetGenericArguments() public static method

public static GetGenericArguments ( this type ) : System.Type[]
type this
return System.Type[]

GetMethod() public static method

public static GetMethod ( this type, string name, BindingFlags flags, Type parameterTypes ) : MethodInfo
type this
name string
flags BindingFlags
parameterTypes System.Type
return System.Reflection.MethodInfo

GetProperties() public static method

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

IsAssignableFrom() public static method

public static IsAssignableFrom ( this a, Type b ) : bool
a this
b System.Type
return bool

IsGenericType() public static method

public static IsGenericType ( this type ) : bool
type this
return bool

IsValueType() public static method

public static IsValueType ( this type ) : bool
type this
return bool