C# Class MvvmCross.Platform.ReflectionExtensions

显示文件 Open project: MvvmCross/MvvmCross

Public Methods

Method Description
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[]
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

Private Methods

Method Description
IsMarshalByRefObject ( this obj ) : bool
NullSafeIsPublic ( this info ) : bool
NullSafeIsStatic ( this info ) : bool

Method Details

GetAddMethod() public static method

public static GetAddMethod ( this eventInfo, bool nonPublic = false ) : MethodInfo
eventInfo this
nonPublic bool
return System.Reflection.MethodInfo

GetConstructors() public static method

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

GetConstructors() public static method

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

GetCustomAttributes() public static method

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

GetEvent() public static method

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

GetField() public static method

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

GetField() public static method

public static GetField ( this type, string name, BindingFlags flags ) : FieldInfo
type this
name string
flags BindingFlags
return System.Reflection.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

GetGenericArguments() public static method

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

GetGetMethod() public static method

public static GetGetMethod ( this property, bool nonPublic = false ) : MethodInfo
property this
nonPublic bool
return System.Reflection.MethodInfo

GetInterfaces() public static method

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

GetMethod() public static method

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

GetMethod() public static method

public static GetMethod ( this type, string name, BindingFlags flags ) : MethodInfo
type this
name string
flags BindingFlags
return System.Reflection.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 ) : IEnumerable
type this
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 name ) : PropertyInfo
type this
name string
return System.Reflection.PropertyInfo

GetProperty() public static method

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

GetRemoveMethod() public static method

public static GetRemoveMethod ( this eventInfo, bool nonPublic = false ) : MethodInfo
eventInfo this
nonPublic bool
return System.Reflection.MethodInfo

GetSetMethod() public static method

public static GetSetMethod ( this property, bool nonPublic = false ) : MethodInfo
property this
nonPublic bool
return System.Reflection.MethodInfo

GetTypes() public static method

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

IsAssignableFrom() public static method

public static IsAssignableFrom ( this type, Type otherType ) : bool
type this
otherType System.Type
return bool

IsInstanceOfType() public static method

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