C# Class ReflectionExtensions

Mostrar archivo Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Public Methods

Method Description
GetCustomAttributes ( this type, Type attributeType, bool inherit ) : object[]
GetCustomAttributes ( this type, bool inherit ) : object[]
GetEvent ( this type, string eventName ) : EventInfo
GetField ( this type, string fieldName ) : FieldInfo
GetFields ( this type ) : IEnumerable
GetFields ( this type, BindingFlags, flags ) : IEnumerable
GetMethod ( this type, string methodName ) : MethodInfo
GetMethod ( this type, string methodName, BindingFlags, flags ) : MethodInfo
GetMethod ( this type, string methodName, BindingFlags, bindingAttr, Object binder, Type parameters, Object modifiers ) : MethodInfo
GetMethod ( this type, string methodName, Type parameters ) : MethodInfo
GetMethods ( this type ) : IEnumerable
GetMethods ( this type, BindingFlags, flags ) : IEnumerable
GetProperties ( this type, BindingFlags, flags ) : IEnumerable
GetProperty ( this type, string propertyName ) : PropertyInfo
GetProperty ( this type, string propertyName, BindingFlags, flags ) : PropertyInfo
GetProperty ( this type, string propertyName, Type returnType ) : PropertyInfo
GetTypes ( this assembly ) : IEnumerable
IsAssignableFrom ( this type, Type c ) : bool
IsAssignableFrom ( this type, TypeInfo typeInfo ) : bool
IsEnum ( this type ) : bool
IsSubclassOf ( this type, Type c ) : bool

Method Details

GetCustomAttributes() public static method

public static GetCustomAttributes ( this type, Type attributeType, bool inherit ) : object[]
type this
attributeType Type
inherit bool
return object[]

GetCustomAttributes() public static method

public static GetCustomAttributes ( this type, bool inherit ) : object[]
type this
inherit bool
return object[]

GetEvent() public static method

public static GetEvent ( this type, string eventName ) : EventInfo
type this
eventName string
return EventInfo

GetField() public static method

public static GetField ( this type, string fieldName ) : FieldInfo
type this
fieldName string
return FieldInfo

GetFields() public static method

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

GetFields() public static method

public static GetFields ( this type, BindingFlags, flags ) : IEnumerable
type this
flags BindingFlags,
return IEnumerable

GetMethod() public static method

public static GetMethod ( this type, string methodName ) : MethodInfo
type this
methodName string
return MethodInfo

GetMethod() public static method

public static GetMethod ( this type, string methodName, BindingFlags, flags ) : MethodInfo
type this
methodName string
flags BindingFlags,
return MethodInfo

GetMethod() public static method

public static GetMethod ( this type, string methodName, BindingFlags, bindingAttr, Object binder, Type parameters, Object modifiers ) : MethodInfo
type this
methodName string
bindingAttr BindingFlags,
binder Object
parameters Type
modifiers Object
return MethodInfo

GetMethod() public static method

public static GetMethod ( this type, string methodName, Type parameters ) : MethodInfo
type this
methodName string
parameters Type
return MethodInfo

GetMethods() public static method

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

GetMethods() public static method

public static GetMethods ( this type, BindingFlags, flags ) : IEnumerable
type this
flags BindingFlags,
return IEnumerable

GetProperties() public static method

public static GetProperties ( this type, BindingFlags, flags ) : IEnumerable
type this
flags BindingFlags,
return IEnumerable

GetProperty() public static method

public static GetProperty ( this type, string propertyName ) : PropertyInfo
type this
propertyName string
return PropertyInfo

GetProperty() public static method

public static GetProperty ( this type, string propertyName, BindingFlags, flags ) : PropertyInfo
type this
propertyName string
flags BindingFlags,
return PropertyInfo

GetProperty() public static method

public static GetProperty ( this type, string propertyName, Type returnType ) : PropertyInfo
type this
propertyName string
returnType Type
return PropertyInfo

GetTypes() public static method

public static GetTypes ( this assembly ) : IEnumerable
assembly this
return IEnumerable

IsAssignableFrom() public static method

public static IsAssignableFrom ( this type, Type c ) : bool
type this
c Type
return bool

IsAssignableFrom() public static method

public static IsAssignableFrom ( this type, TypeInfo typeInfo ) : bool
type this
typeInfo TypeInfo
return bool

IsEnum() public static method

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

IsSubclassOf() public static method

public static IsSubclassOf ( this type, Type c ) : bool
type this
c Type
return bool