C# Класс RoslynDom.Common.ReflectionUtilities

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

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

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

Приватные методы

Метод Описание
GetPropertyInfo ( object instance, string propertyName ) : PropertyInfo

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

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

public static CanGetProperty ( object instance, string propertyName ) : bool
instance object
propertyName string
Результат bool

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

public static CanSetProperty ( object instance, string propertyName ) : bool
instance object
propertyName string
Результат bool

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

public static FindMethod ( Type type, string methodName ) : MethodInfo
type System.Type
methodName string
Результат System.Reflection.MethodInfo

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

public static FindMethod ( Type type, string methodName, bool mightBePrivate ) : MethodInfo
type System.Type
methodName string
mightBePrivate bool
Результат System.Reflection.MethodInfo

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

public static GetPropertyValue ( object instance, string propertyName ) : object
instance object
propertyName string
Результат object

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

public static MakeGenericMethod ( Type type, string methodName ) : MethodInfo
type System.Type
methodName string
Результат System.Reflection.MethodInfo

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

public static MakeGenericType ( Type openType ) : Type
openType System.Type
Результат System.Type

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

public static SetPropertyValue ( object instance, string propertyName, object value ) : void
instance object
propertyName string
value object
Результат void