C# Class CoreTechs.Common.Reflection.ReflectionExtensions

Afficher le fichier Open project: Core-Techs/Common

Méthodes publiques

Méthode Description
GetPropertiesAsDeclared ( this type ) : System.Reflection.PropertyInfo[]

Returns all properties found for the type, but as they are retrieved from their own declaring types. This helps to ensure that the get and set methods can be accessed. It's recommended to use this method to retrieve a type's properties and then use LINQ for filtering.

IsAssignableTo ( this from, Type to ) : bool
IsNullable ( this type ) : bool

Method Details

GetPropertiesAsDeclared() public static méthode

Returns all properties found for the type, but as they are retrieved from their own declaring types. This helps to ensure that the get and set methods can be accessed. It's recommended to use this method to retrieve a type's properties and then use LINQ for filtering.
public static GetPropertiesAsDeclared ( this type ) : System.Reflection.PropertyInfo[]
type this
Résultat System.Reflection.PropertyInfo[]

IsAssignableTo() public static méthode

public static IsAssignableTo ( this from, Type to ) : bool
from this
to System.Type
Résultat bool

IsNullable() public static méthode

public static IsNullable ( this type ) : bool
type this
Résultat bool