C# Класс Composite.Data.DynamicTypes.DataTypeDescriptor

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddSuperInterface void
FromXml DataTypeDescriptor
SetSuperInterfaces void

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

Метод Описание
AddSuperInterface ( Type interfaceType ) : void

Adds an interface the data type should inherit from

Clone ( ) : DataTypeDescriptor

Clones the data type description.

DataTypeDescriptor ( ) : System

Instantiates an instance of DataTypeDescriptor with default settings.

DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, bool isCodeGenerated ) : System

Instantiates an instance of DataTypeDescriptor.

DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, string typeManagerTypeName ) : System

Instantiates an instance of DataTypeDescriptor with a custom Type Manager.

DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, string typeManagerTypeName, bool isCodeGenerated ) : System

Instantiates an instance of DataTypeDescriptor with a custom Type Manager.

Equals ( DataTypeDescriptor dataTypeDescriptor ) : bool
Equals ( object obj ) : bool
FromXml ( System.Xml.Linq.XElement element ) : DataTypeDescriptor

Deserializes a data type descriptor

GetHashCode ( ) : int
GetInterfaceType ( ) : Type

Returns the CLT Type for this data type description.

RemoveSuperInterface ( Type interfaceType ) : void

Removes a super interface

ToString ( ) : string
ToXml ( ) : System.Xml.Linq.XElement

Serialize the data type description to XML

Validate ( ) : void

Validate the data type description or throw an exception.

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

Метод Описание
AddSuperInterface ( Type interfaceType, bool addInheritedFields ) : void

Adds an interface the data type should inherit from

FromXml ( System.Xml.Linq.XElement element, bool inheritedFieldsIncluded ) : DataTypeDescriptor
SetSuperInterfaces ( List superInterfaces ) : void

Resets the list of interfaces this data type inherit from

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

AddSuperInterface() публичный метод

Adds an interface the data type should inherit from
public AddSuperInterface ( Type interfaceType ) : void
interfaceType System.Type
Результат void

Clone() публичный метод

Clones the data type description.
public Clone ( ) : DataTypeDescriptor
Результат DataTypeDescriptor

DataTypeDescriptor() публичный метод

Instantiates an instance of DataTypeDescriptor with default settings.
public DataTypeDescriptor ( ) : System
Результат System

DataTypeDescriptor() публичный метод

Instantiates an instance of DataTypeDescriptor.
public DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, bool isCodeGenerated ) : System
dataTypeId System.Guid The permanent Guid which should represent this data type.
dataTypeNamespace string Namespace of the type.
dataTypeName string Name of the type.
isCodeGenerated bool True if this type is dynamically compiled.
Результат System

DataTypeDescriptor() публичный метод

Instantiates an instance of DataTypeDescriptor with a custom Type Manager.
public DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, string typeManagerTypeName ) : System
dataTypeId System.Guid The permanent Guid which should represent this data type.
dataTypeNamespace string Namespace of the type.
dataTypeName string Name of the type.
typeManagerTypeName string If this data type has a custom type manager
Результат System

DataTypeDescriptor() публичный метод

Instantiates an instance of DataTypeDescriptor with a custom Type Manager.
public DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, string typeManagerTypeName, bool isCodeGenerated ) : System
dataTypeId System.Guid The permanent Guid which should represent this data type.
dataTypeNamespace string Namespace of the type.
dataTypeName string Name of the type.
typeManagerTypeName string If this data type has a custom type manager
isCodeGenerated bool True if this type is dynamically compiled.
Результат System

Equals() публичный метод

public Equals ( DataTypeDescriptor dataTypeDescriptor ) : bool
dataTypeDescriptor DataTypeDescriptor
Результат bool

Equals() публичный метод

public Equals ( object obj ) : bool
obj object
Результат bool

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

Deserializes a data type descriptor
public static FromXml ( System.Xml.Linq.XElement element ) : DataTypeDescriptor
element System.Xml.Linq.XElement A serialized (XML) data type descriptor
Результат DataTypeDescriptor

GetHashCode() публичный метод

public GetHashCode ( ) : int
Результат int

GetInterfaceType() публичный метод

Returns the CLT Type for this data type description.
public GetInterfaceType ( ) : Type
Результат System.Type

RemoveSuperInterface() публичный метод

Removes a super interface
public RemoveSuperInterface ( Type interfaceType ) : void
interfaceType System.Type Type to remove
Результат void

ToString() публичный метод

public ToString ( ) : string
Результат string

ToXml() публичный метод

Serialize the data type description to XML
public ToXml ( ) : System.Xml.Linq.XElement
Результат System.Xml.Linq.XElement

Validate() публичный метод

Validate the data type description or throw an exception.
public Validate ( ) : void
Результат void