C# Класс CoreTechs.Common.Reflection.ReflectionExtensions

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

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

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

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

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

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
Результат System.Reflection.PropertyInfo[]

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

public static IsAssignableTo ( this from, Type to ) : bool
from this
to System.Type
Результат bool

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

public static IsNullable ( this type ) : bool
type this
Результат bool