C# Class EntityFramework.Metadata.Extensions.TypeExtensions

Afficher le fichier Open project: schneidenbach/EntityFramework.Metadata

Méthodes publiques

Méthode Description
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

Method Details

GetDerivedTypes() public static méthode

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
Résultat System.Type[]

GetDerivedTypes() public static méthode

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
Résultat System.Type[]

GetPrivateFieldValue() public static méthode

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.
Résultat object

GetProperty() public static méthode

public static GetProperty ( this type, string propertyName, char separator ) : PropertyInfo
type this
propertyName string
separator char
Résultat System.Reflection.PropertyInfo

GetPropertyValue() public static méthode

public static GetPropertyValue ( this obj, string propertyName, char separator = '.' ) : object
obj this
propertyName string
separator char
Résultat object

IsNullable() public static méthode

public static IsNullable ( this type, Type &argumentType ) : bool
type this
argumentType System.Type
Résultat bool