C# Класс EntityFramework.Metadata.Extensions.TypeExtensions

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

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

Метод Описание
GetDerivedTypes ( this type, Assembly assembly = null ) : System.Type[]

Find all derived types from assembly. If assembly is not given, given type assembly is used.

GetDerivedTypes ( this type, bool includeItself, Assembly assembly = null ) : System.Type[]

Find all derived types from assembly. If assembly is not given, given type assembly is used.

GetPrivateFieldValue ( this obj, string propName ) : object

Returns a private Property Value from a given Object. Uses Reflection. Throws a ArgumentOutOfRangeException if the Property is not found.

GetProperty ( this type, string propertyName, char separator ) : PropertyInfo

GetPropertyValue ( this obj, string propertyName, char separator = '.' ) : object

IsNullable ( this type, Type &argumentType ) : bool

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

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

Find all derived types from assembly. If assembly is not given, given type assembly is used.
public static GetDerivedTypes ( this type, Assembly assembly = null ) : System.Type[]
type this
assembly System.Reflection.Assembly
Результат System.Type[]

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

Find all derived types from assembly. If assembly is not given, given type assembly is used.
public static GetDerivedTypes ( this type, bool includeItself, Assembly assembly = null ) : System.Type[]
type this
includeItself bool
assembly System.Reflection.Assembly
Результат System.Type[]

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

Returns a private Property Value from a given Object. Uses Reflection. Throws a ArgumentOutOfRangeException if the Property is not found.
public static GetPrivateFieldValue ( this obj, string propName ) : object
obj this Object from where the Property Value is returned
propName string Propertyname as string.
Результат object

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

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

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

public static GetPropertyValue ( this obj, string propertyName, char separator = '.' ) : object
obj this
propertyName string
separator char
Результат object

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

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