C# Class Catel.Data.CatelTypeInfo

Class containing all information about a Catel type (such as properties).
Afficher le fichier Open project: Catel/Catel Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

CatelTypeInfo() public méthode

Initializes a new instance of the CatelTypeInfo class.
The is null.
public CatelTypeInfo ( Type type ) : System
type System.Type The type.
Résultat System

GetCatelProperties() public méthode

Gets the Catel properties.
public GetCatelProperties ( ) : PropertyData>.IDictionary
Résultat PropertyData>.IDictionary

GetNonCatelProperties() public méthode

Gets the non-Catel properties.
public GetNonCatelProperties ( ) : CachedPropertyInfo>.IDictionary
Résultat CachedPropertyInfo>.IDictionary

GetPropertyData() public méthode

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

IsPropertyRegistered() public méthode

Returns whether a specific property is registered.
The is null or whitespace.
public IsPropertyRegistered ( string name ) : bool
name string The name of the property.
Résultat bool

RegisterProperties() public méthode

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
Résultat void

RegisterProperty() public méthode

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

UnregisterProperty() public méthode

Unregisters a property for a specific type.
The is null or whitespace.
public UnregisterProperty ( string name ) : void
name string The name of the property.
Résultat void