C# Класс System.Reflection.TypeExtensions

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

GetConstructor() публичный статический Метод

public static GetConstructor ( this type, System types ) : System.Reflection.ConstructorInfo
type this
types System
Результат System.Reflection.ConstructorInfo

GetConstructors() публичный статический Метод

public static GetConstructors ( this type ) : System.Reflection.ConstructorInfo[]
type this
Результат System.Reflection.ConstructorInfo[]

GetConstructors() публичный статический Метод

public static GetConstructors ( this type, System bindingAttr ) : System.Reflection.ConstructorInfo[]
type this
bindingAttr System
Результат System.Reflection.ConstructorInfo[]

GetDefaultMembers() публичный статический Метод

public static GetDefaultMembers ( this type ) : System.Reflection.MemberInfo[]
type this
Результат System.Reflection.MemberInfo[]

GetEvent() публичный статический Метод

public static GetEvent ( this type, string name ) : System.Reflection.EventInfo
type this
name string
Результат System.Reflection.EventInfo

GetEvent() публичный статический Метод

public static GetEvent ( this type, string name, System bindingAttr ) : System.Reflection.EventInfo
type this
name string
bindingAttr System
Результат System.Reflection.EventInfo

GetEvents() публичный статический Метод

public static GetEvents ( this type ) : System.Reflection.EventInfo[]
type this
Результат System.Reflection.EventInfo[]

GetEvents() публичный статический Метод

public static GetEvents ( this type, System bindingAttr ) : System.Reflection.EventInfo[]
type this
bindingAttr System
Результат System.Reflection.EventInfo[]

GetField() публичный статический Метод

public static GetField ( this type, string name ) : System.Reflection.FieldInfo
type this
name string
Результат System.Reflection.FieldInfo

GetField() публичный статический Метод

public static GetField ( this type, string name, System bindingAttr ) : System.Reflection.FieldInfo
type this
name string
bindingAttr System
Результат System.Reflection.FieldInfo

GetFields() публичный статический Метод

public static GetFields ( this type ) : System.Reflection.FieldInfo[]
type this
Результат System.Reflection.FieldInfo[]

GetFields() публичный статический Метод

public static GetFields ( this type, System bindingAttr ) : System.Reflection.FieldInfo[]
type this
bindingAttr System
Результат System.Reflection.FieldInfo[]

GetGenericArguments() публичный статический Метод

public static GetGenericArguments ( this type ) : System.Type[]
type this
Результат System.Type[]

GetInterfaces() публичный статический Метод

public static GetInterfaces ( this type ) : System.Type[]
type this
Результат System.Type[]

GetMember() публичный статический Метод

public static GetMember ( this type, string name ) : System.Reflection.MemberInfo[]
type this
name string
Результат System.Reflection.MemberInfo[]

GetMember() публичный статический Метод

public static GetMember ( this type, string name, System bindingAttr ) : System.Reflection.MemberInfo[]
type this
name string
bindingAttr System
Результат System.Reflection.MemberInfo[]

GetMembers() публичный статический Метод

public static GetMembers ( this type ) : System.Reflection.MemberInfo[]
type this
Результат System.Reflection.MemberInfo[]

GetMembers() публичный статический Метод

public static GetMembers ( this type, System bindingAttr ) : System.Reflection.MemberInfo[]
type this
bindingAttr System
Результат System.Reflection.MemberInfo[]

GetMethod() публичный статический Метод

public static GetMethod ( this type, string name ) : System.Reflection.MethodInfo
type this
name string
Результат System.Reflection.MethodInfo

GetMethod() публичный статический Метод

public static GetMethod ( this type, string name, System bindingAttr ) : System.Reflection.MethodInfo
type this
name string
bindingAttr System
Результат System.Reflection.MethodInfo

GetMethods() публичный статический Метод

public static GetMethods ( this type ) : System.Reflection.MethodInfo[]
type this
Результат System.Reflection.MethodInfo[]

GetMethods() публичный статический Метод

public static GetMethods ( this type, System bindingAttr ) : System.Reflection.MethodInfo[]
type this
bindingAttr System
Результат System.Reflection.MethodInfo[]

GetNestedType() публичный статический Метод

public static GetNestedType ( this type, string name, System bindingAttr ) : System.Type
type this
name string
bindingAttr System
Результат System.Type

GetNestedTypes() публичный статический Метод

public static GetNestedTypes ( this type, System bindingAttr ) : System.Type[]
type this
bindingAttr System
Результат System.Type[]

GetProperties() публичный статический Метод

public static GetProperties ( this type ) : System.Reflection.PropertyInfo[]
type this
Результат System.Reflection.PropertyInfo[]

GetProperties() публичный статический Метод

public static GetProperties ( this type, System bindingAttr ) : System.Reflection.PropertyInfo[]
type this
bindingAttr System
Результат System.Reflection.PropertyInfo[]

GetProperty() публичный статический Метод

public static GetProperty ( this type, string name ) : System.Reflection.PropertyInfo
type this
name string
Результат System.Reflection.PropertyInfo

GetProperty() публичный статический Метод

public static GetProperty ( this type, string name, System bindingAttr ) : System.Reflection.PropertyInfo
type this
name string
bindingAttr System
Результат System.Reflection.PropertyInfo

GetProperty() публичный статический Метод

public static GetProperty ( this type, string name, System returnType, System types ) : System.Reflection.PropertyInfo
type this
name string
returnType System
types System
Результат System.Reflection.PropertyInfo

IsAssignableFrom() публичный статический Метод

public static IsAssignableFrom ( this type, System c ) : bool
type this
c System
Результат bool

IsInstanceOfType() публичный статический Метод

public static IsInstanceOfType ( this type, object o ) : bool
type this
o object
Результат bool