C# Class System.Reflection.TypeExtensions

Mostra file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
GetConstructor ( this type, System types ) : System.Reflection.ConstructorInfo
GetConstructors ( this type ) : System.Reflection.ConstructorInfo[]
GetConstructors ( this type, System bindingAttr ) : System.Reflection.ConstructorInfo[]
GetDefaultMembers ( this type ) : System.Reflection.MemberInfo[]
GetEvent ( this type, string name ) : System.Reflection.EventInfo
GetEvent ( this type, string name, System bindingAttr ) : System.Reflection.EventInfo
GetEvents ( this type ) : System.Reflection.EventInfo[]
GetEvents ( this type, System bindingAttr ) : System.Reflection.EventInfo[]
GetField ( this type, string name ) : System.Reflection.FieldInfo
GetField ( this type, string name, System bindingAttr ) : System.Reflection.FieldInfo
GetFields ( this type ) : System.Reflection.FieldInfo[]
GetFields ( this type, System bindingAttr ) : System.Reflection.FieldInfo[]
GetGenericArguments ( this type ) : System.Type[]
GetInterfaces ( this type ) : System.Type[]
GetMember ( this type, string name ) : System.Reflection.MemberInfo[]
GetMember ( this type, string name, System bindingAttr ) : System.Reflection.MemberInfo[]
GetMembers ( this type ) : System.Reflection.MemberInfo[]
GetMembers ( this type, System bindingAttr ) : System.Reflection.MemberInfo[]
GetMethod ( this type, string name ) : System.Reflection.MethodInfo
GetMethod ( this type, string name, System bindingAttr ) : System.Reflection.MethodInfo
GetMethods ( this type ) : System.Reflection.MethodInfo[]
GetMethods ( this type, System bindingAttr ) : System.Reflection.MethodInfo[]
GetNestedType ( this type, string name, System bindingAttr ) : System.Type
GetNestedTypes ( this type, System bindingAttr ) : System.Type[]
GetProperties ( this type ) : System.Reflection.PropertyInfo[]
GetProperties ( this type, System bindingAttr ) : System.Reflection.PropertyInfo[]
GetProperty ( this type, string name ) : System.Reflection.PropertyInfo
GetProperty ( this type, string name, System bindingAttr ) : System.Reflection.PropertyInfo
GetProperty ( this type, string name, System returnType, System types ) : System.Reflection.PropertyInfo
IsAssignableFrom ( this type, System c ) : bool
IsInstanceOfType ( this type, object o ) : bool

Method Details

GetConstructor() public static method

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

GetConstructors() public static method

public static GetConstructors ( this type ) : System.Reflection.ConstructorInfo[]
type this
return System.Reflection.ConstructorInfo[]

GetConstructors() public static method

public static GetConstructors ( this type, System bindingAttr ) : System.Reflection.ConstructorInfo[]
type this
bindingAttr System
return System.Reflection.ConstructorInfo[]

GetDefaultMembers() public static method

public static GetDefaultMembers ( this type ) : System.Reflection.MemberInfo[]
type this
return System.Reflection.MemberInfo[]

GetEvent() public static method

public static GetEvent ( this type, string name ) : System.Reflection.EventInfo
type this
name string
return System.Reflection.EventInfo

GetEvent() public static method

public static GetEvent ( this type, string name, System bindingAttr ) : System.Reflection.EventInfo
type this
name string
bindingAttr System
return System.Reflection.EventInfo

GetEvents() public static method

public static GetEvents ( this type ) : System.Reflection.EventInfo[]
type this
return System.Reflection.EventInfo[]

GetEvents() public static method

public static GetEvents ( this type, System bindingAttr ) : System.Reflection.EventInfo[]
type this
bindingAttr System
return System.Reflection.EventInfo[]

GetField() public static method

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

GetField() public static method

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

GetFields() public static method

public static GetFields ( this type ) : System.Reflection.FieldInfo[]
type this
return System.Reflection.FieldInfo[]

GetFields() public static method

public static GetFields ( this type, System bindingAttr ) : System.Reflection.FieldInfo[]
type this
bindingAttr System
return System.Reflection.FieldInfo[]

GetGenericArguments() public static method

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

GetInterfaces() public static method

public static GetInterfaces ( 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[]

GetMember() public static method

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

GetMembers() public static method

public static GetMembers ( this type ) : System.Reflection.MemberInfo[]
type this
return System.Reflection.MemberInfo[]

GetMembers() public static method

public static GetMembers ( this type, System bindingAttr ) : System.Reflection.MemberInfo[]
type this
bindingAttr System
return System.Reflection.MemberInfo[]

GetMethod() public static method

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

GetMethod() public static method

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

GetMethods() public static method

public static GetMethods ( this type ) : System.Reflection.MethodInfo[]
type this
return System.Reflection.MethodInfo[]

GetMethods() public static method

public static GetMethods ( this type, System bindingAttr ) : System.Reflection.MethodInfo[]
type this
bindingAttr System
return System.Reflection.MethodInfo[]

GetNestedType() public static method

public static GetNestedType ( this type, string name, System bindingAttr ) : System.Type
type this
name string
bindingAttr System
return System.Type

GetNestedTypes() public static method

public static GetNestedTypes ( this type, System bindingAttr ) : System.Type[]
type this
bindingAttr System
return System.Type[]

GetProperties() public static method

public static GetProperties ( this type ) : System.Reflection.PropertyInfo[]
type this
return System.Reflection.PropertyInfo[]

GetProperties() public static method

public static GetProperties ( this type, System bindingAttr ) : System.Reflection.PropertyInfo[]
type this
bindingAttr System
return System.Reflection.PropertyInfo[]

GetProperty() public static method

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

GetProperty() public static method

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

GetProperty() public static method

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

IsAssignableFrom() public static method

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

IsInstanceOfType() public static method

public static IsInstanceOfType ( this type, object o ) : bool
type this
o object
return bool