C# Class CoreTechs.Common.Reflection.ReflectionExtensions

ファイルを表示 Open project: Core-Techs/Common

Public Methods

Method 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 method

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
return System.Reflection.PropertyInfo[]

IsAssignableTo() public static method

public static IsAssignableTo ( this from, Type to ) : bool
from this
to System.Type
return bool

IsNullable() public static method

public static IsNullable ( this type ) : bool
type this
return bool