C# Класс Catel.Data.CatelTypeInfo

Class containing all information about a Catel type (such as properties).
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CatelTypeInfo ( Type type ) : System

Initializes a new instance of the CatelTypeInfo class.

GetCatelProperties ( ) : PropertyData>.IDictionary

Gets the Catel properties.

GetNonCatelProperties ( ) : CachedPropertyInfo>.IDictionary

Gets the non-Catel properties.

GetPropertyData ( string name ) : PropertyData

Gets the property data.

IsPropertyRegistered ( string name ) : bool

Returns whether a specific property is registered.

RegisterProperties ( ) : void

Registers all the properties for the specified type. This method can only be called once per type. The PropertyDataManager caches whether it has already registered the properties once.

RegisterProperty ( string name, PropertyData propertyData ) : void

Registers a property for a specific type.

UnregisterProperty ( string name ) : void

Unregisters a property for a specific type.

Приватные методы

Метод Описание
FindCatelFields ( Type type ) : IEnumerable

Finds the fields that represent a PropertyData.

FindCatelProperties ( Type type ) : IEnumerable

Finds the properties that represent a PropertyData.

FindNonCatelProperties ( Type type ) : IEnumerable

Finds the non catel properties.

PreventWrongDeclaredFields ( Type type ) : void

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

CatelTypeInfo() публичный Метод

Initializes a new instance of the CatelTypeInfo class.
The is null.
public CatelTypeInfo ( Type type ) : System
type System.Type The type.
Результат System

GetCatelProperties() публичный Метод

Gets the Catel properties.
public GetCatelProperties ( ) : PropertyData>.IDictionary
Результат PropertyData>.IDictionary

GetNonCatelProperties() публичный Метод

Gets the non-Catel properties.
public GetNonCatelProperties ( ) : CachedPropertyInfo>.IDictionary
Результат CachedPropertyInfo>.IDictionary

GetPropertyData() публичный Метод

Gets the property data.
The is null or whitespace. Thrown when the property is not registered.
public GetPropertyData ( string name ) : PropertyData
name string The name of the property.
Результат PropertyData

IsPropertyRegistered() публичный Метод

Returns whether a specific property is registered.
The is null or whitespace.
public IsPropertyRegistered ( string name ) : bool
name string The name of the property.
Результат bool

RegisterProperties() публичный Метод

Registers all the properties for the specified type. This method can only be called once per type. The PropertyDataManager caches whether it has already registered the properties once.
The properties are not declared correctly.
public RegisterProperties ( ) : void
Результат void

RegisterProperty() публичный Метод

Registers a property for a specific type.
The is null or whitespace. The is null. A property with the same name is already registered.
public RegisterProperty ( string name, PropertyData propertyData ) : void
name string The name of the property.
propertyData PropertyData The property data.
Результат void

UnregisterProperty() публичный Метод

Unregisters a property for a specific type.
The is null or whitespace.
public UnregisterProperty ( string name ) : void
name string The name of the property.
Результат void