C# Class System.Reflection.TypeExtensions

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static GetConstructor ( this type, System types ) : System.Reflection.ConstructorInfo
type this
types System
Résultat System.Reflection.ConstructorInfo

GetConstructors() public static méthode

public static GetConstructors ( this type ) : System.Reflection.ConstructorInfo[]
type this
Résultat System.Reflection.ConstructorInfo[]

GetConstructors() public static méthode

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

GetDefaultMembers() public static méthode

public static GetDefaultMembers ( this type ) : System.Reflection.MemberInfo[]
type this
Résultat System.Reflection.MemberInfo[]

GetEvent() public static méthode

public static GetEvent ( this type, string name ) : System.Reflection.EventInfo
type this
name string
Résultat System.Reflection.EventInfo

GetEvent() public static méthode

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

GetEvents() public static méthode

public static GetEvents ( this type ) : System.Reflection.EventInfo[]
type this
Résultat System.Reflection.EventInfo[]

GetEvents() public static méthode

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

GetField() public static méthode

public static GetField ( this type, string name ) : System.Reflection.FieldInfo
type this
name string
Résultat System.Reflection.FieldInfo

GetField() public static méthode

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

GetFields() public static méthode

public static GetFields ( this type ) : System.Reflection.FieldInfo[]
type this
Résultat System.Reflection.FieldInfo[]

GetFields() public static méthode

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

GetGenericArguments() public static méthode

public static GetGenericArguments ( this type ) : System.Type[]
type this
Résultat System.Type[]

GetInterfaces() public static méthode

public static GetInterfaces ( this type ) : System.Type[]
type this
Résultat System.Type[]

GetMember() public static méthode

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

GetMember() public static méthode

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

GetMembers() public static méthode

public static GetMembers ( this type ) : System.Reflection.MemberInfo[]
type this
Résultat System.Reflection.MemberInfo[]

GetMembers() public static méthode

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

GetMethod() public static méthode

public static GetMethod ( this type, string name ) : System.Reflection.MethodInfo
type this
name string
Résultat System.Reflection.MethodInfo

GetMethod() public static méthode

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

GetMethods() public static méthode

public static GetMethods ( this type ) : System.Reflection.MethodInfo[]
type this
Résultat System.Reflection.MethodInfo[]

GetMethods() public static méthode

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

GetNestedType() public static méthode

public static GetNestedType ( this type, string name, System bindingAttr ) : System.Type
type this
name string
bindingAttr System
Résultat System.Type

GetNestedTypes() public static méthode

public static GetNestedTypes ( this type, System bindingAttr ) : System.Type[]
type this
bindingAttr System
Résultat System.Type[]

GetProperties() public static méthode

public static GetProperties ( this type ) : System.Reflection.PropertyInfo[]
type this
Résultat System.Reflection.PropertyInfo[]

GetProperties() public static méthode

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

GetProperty() public static méthode

public static GetProperty ( this type, string name ) : System.Reflection.PropertyInfo
type this
name string
Résultat System.Reflection.PropertyInfo

GetProperty() public static méthode

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

GetProperty() public static méthode

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

IsAssignableFrom() public static méthode

public static IsAssignableFrom ( this type, System c ) : bool
type this
c System
Résultat bool

IsInstanceOfType() public static méthode

public static IsInstanceOfType ( this type, object o ) : bool
type this
o object
Résultat bool