C# Класс SimpleAuth.ReflectionExtensions

Показать файл Открыть проект

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

Метод Описание
GetAddMethod ( this eventInfo, bool nonPublic = false ) : MethodInfo
GetConstructors ( this type ) : IEnumerable
GetConstructors ( this type, BindingFlags flags ) : IEnumerable
GetCustomAttributes ( this type, Type attributeType, bool inherit ) : System.Attribute[]
GetCustomAttributes ( this member, bool inherit ) : System.Attribute[]
GetEvent ( this type, string name ) : EventInfo
GetField ( this type, string name ) : FieldInfo
GetField ( this type, string name, BindingFlags flags ) : FieldInfo
GetFields ( this type ) : IEnumerable
GetFields ( this type, BindingFlags flags ) : IEnumerable
GetGenericArguments ( this type ) : System.Type[]
GetGetMethod ( this property, bool nonPublic = false ) : MethodInfo
GetInterfaces ( this type ) : IEnumerable
GetMethod ( this type, string name ) : MethodInfo
GetMethod ( this type, string name, BindingFlags flags ) : MethodInfo
GetMethods ( this type ) : IEnumerable
GetMethods ( this type, BindingFlags flags ) : IEnumerable
GetProperties ( this type ) : IEnumerable
GetProperties ( this type, BindingFlags flags ) : IEnumerable
GetProperty ( this type, string name ) : PropertyInfo
GetProperty ( this type, string name, BindingFlags flags ) : PropertyInfo
GetRemoveMethod ( this eventInfo, bool nonPublic = false ) : MethodInfo
GetSetMethod ( this property, bool nonPublic = false ) : MethodInfo
GetTypes ( this assembly ) : IEnumerable
IsAssignableFrom ( this type, Type otherType ) : bool
IsInstanceOfType ( this type, object obj ) : bool

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

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

public static GetAddMethod ( this eventInfo, bool nonPublic = false ) : MethodInfo
eventInfo this
nonPublic bool
Результат System.Reflection.MethodInfo

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

public static GetConstructors ( this type ) : IEnumerable
type this
Результат IEnumerable

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

public static GetConstructors ( this type, BindingFlags flags ) : IEnumerable
type this
flags BindingFlags
Результат IEnumerable

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

public static GetCustomAttributes ( this type, Type attributeType, bool inherit ) : System.Attribute[]
type this
attributeType System.Type
inherit bool
Результат System.Attribute[]

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

public static GetCustomAttributes ( this member, bool inherit ) : System.Attribute[]
member this
inherit bool
Результат System.Attribute[]

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

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

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

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

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

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

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

public static GetFields ( this type ) : IEnumerable
type this
Результат IEnumerable

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

public static GetFields ( this type, BindingFlags flags ) : IEnumerable
type this
flags BindingFlags
Результат IEnumerable

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

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

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

public static GetGetMethod ( this property, bool nonPublic = false ) : MethodInfo
property this
nonPublic bool
Результат System.Reflection.MethodInfo

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

public static GetInterfaces ( this type ) : IEnumerable
type this
Результат IEnumerable

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

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

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

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

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

public static GetMethods ( this type ) : IEnumerable
type this
Результат IEnumerable

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

public static GetMethods ( this type, BindingFlags flags ) : IEnumerable
type this
flags BindingFlags
Результат IEnumerable

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

public static GetProperties ( this type ) : IEnumerable
type this
Результат IEnumerable

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

public static GetProperties ( this type, BindingFlags flags ) : IEnumerable
type this
flags BindingFlags
Результат IEnumerable

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

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

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

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

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

public static GetRemoveMethod ( this eventInfo, bool nonPublic = false ) : MethodInfo
eventInfo this
nonPublic bool
Результат System.Reflection.MethodInfo

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

public static GetSetMethod ( this property, bool nonPublic = false ) : MethodInfo
property this
nonPublic bool
Результат System.Reflection.MethodInfo

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

public static GetTypes ( this assembly ) : IEnumerable
assembly this
Результат IEnumerable

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

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

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

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