C# 클래스 Catel.Data.CatelTypeInfo

Class containing all information about a Catel type (such as properties).
파일 보기 프로젝트 열기: Catel/Catel 1 사용 예제들

공개 메소드들

메소드 설명
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