C# Class RoslynDom.Common.ReflectionUtilities

Mostrar archivo Open project: KathleenDollard/RoslynDOM

Public Methods

Method Description
CanGetProperty ( object instance, string propertyName ) : bool
CanSetProperty ( object instance, string propertyName ) : bool
FindMethod ( Type type, string methodName ) : MethodInfo
FindMethod ( Type type, string methodName, bool mightBePrivate ) : MethodInfo
GetPropertyValue ( object instance, string propertyName ) : object
MakeGenericMethod ( Type type, string methodName ) : MethodInfo
MakeGenericType ( Type openType ) : Type
SetPropertyValue ( object instance, string propertyName, object value ) : void

Private Methods

Method Description
GetPropertyInfo ( object instance, string propertyName ) : PropertyInfo

Method Details

CanGetProperty() public static method

public static CanGetProperty ( object instance, string propertyName ) : bool
instance object
propertyName string
return bool

CanSetProperty() public static method

public static CanSetProperty ( object instance, string propertyName ) : bool
instance object
propertyName string
return bool

FindMethod() public static method

public static FindMethod ( Type type, string methodName ) : MethodInfo
type System.Type
methodName string
return System.Reflection.MethodInfo

FindMethod() public static method

public static FindMethod ( Type type, string methodName, bool mightBePrivate ) : MethodInfo
type System.Type
methodName string
mightBePrivate bool
return System.Reflection.MethodInfo

GetPropertyValue() public static method

public static GetPropertyValue ( object instance, string propertyName ) : object
instance object
propertyName string
return object

MakeGenericMethod() public static method

public static MakeGenericMethod ( Type type, string methodName ) : MethodInfo
type System.Type
methodName string
return System.Reflection.MethodInfo

MakeGenericType() public static method

public static MakeGenericType ( Type openType ) : Type
openType System.Type
return System.Type

SetPropertyValue() public static method

public static SetPropertyValue ( object instance, string propertyName, object value ) : void
instance object
propertyName string
value object
return void