C# Class System.TypeExtensionMethods

Mostra file Open project: vchelaru/FlatRedBall

Public Methods

Method Description
GetConstructor ( this type, Type types ) : ConstructorInfo
GetField ( this type, string name ) : FieldInfo
GetFields ( this type ) : IEnumerable
GetGenericArguments ( this type ) : System.Type[]
GetMember ( this type, string name ) : System.Reflection.MemberInfo[]
GetMethod ( this type, string name ) : MethodInfo
GetMethod ( this type, string name, Type parameters ) : MethodInfo
GetProperties ( this type ) : IEnumerable
GetProperty ( this type, string name ) : PropertyInfo
IsEnum ( this type ) : bool
IsPrimitive ( this type ) : bool
IsValueType ( this type ) : bool

Method Details

GetConstructor() public static method

public static GetConstructor ( this type, Type types ) : ConstructorInfo
type this
types Type
return System.Reflection.ConstructorInfo

GetField() public static method

public static GetField ( this type, string name ) : FieldInfo
type this
name string
return System.Reflection.FieldInfo

GetFields() public static method

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

GetGenericArguments() public static method

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

GetMember() public static method

public static GetMember ( this type, string name ) : System.Reflection.MemberInfo[]
type this
name string
return System.Reflection.MemberInfo[]

GetMethod() public static method

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

GetMethod() public static method

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

GetProperties() public static method

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

GetProperty() public static method

public static GetProperty ( this type, string name ) : PropertyInfo
type this
name string
return System.Reflection.PropertyInfo

IsEnum() public static method

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

IsPrimitive() public static method

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

IsValueType() public static method

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