C# Класс CsDebugScript.CodeGen.UserTypes.UserTypeFactory

Class representing user type factory. It is being used to find types.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
typeTransformations XmlTypeTransformation[]

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

Метод Описание
UserTypeFactory ( UserTypeFactory factory ) : System

Initializes a new instance of the UserTypeFactory class.

UserTypeFactory ( XmlTypeTransformation transformations ) : System

Initializes a new instance of the UserTypeFactory class.

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

Метод Описание
AddDerivedClassToBaseClasses ( UserType userType ) : void

Adds the specified user type as derived class to all its base classes.

AddSymbol ( Symbol symbol, XmlType type, string nameSpace, UserTypeGenerationFlags generationFlags ) : UserType

Adds the symbol to user type factory and generates the user type.

AddSymbols ( IEnumerable symbols, XmlType type, string nameSpace, UserTypeGenerationFlags generationFlags ) : IEnumerable

Adds the symbols to user type factory and generates the user types.

ContainsSymbol ( Module module, string typeString ) : bool

Determines whether the factory contains the specified type.

FindTransformation ( Symbol type, UserType ownerUserType ) : UserTypeTransformation

Tries to match transformation for the specified type.

GetUserType ( Module module, string typeString, UserType &userType ) : bool

Look up for user type based on the specified module and type string.

GetUserType ( Symbol type, UserType &userType ) : bool

Look up for user type based on the specified symbol.

ProcessTypes ( IEnumerable userTypes, string>.Dictionary symbolNamespaces ) : IEnumerable

Post process the types: - If UserType has static members in more than one module, split it into multiple user types. - Find parent type/namespace.

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

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

Initializes a new instance of the UserTypeFactory class.
public UserTypeFactory ( UserTypeFactory factory ) : System
factory UserTypeFactory The user type factory.
Результат System

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

Initializes a new instance of the UserTypeFactory class.
public UserTypeFactory ( XmlTypeTransformation transformations ) : System
transformations XmlTypeTransformation The transformations.
Результат System

Описание свойств

typeTransformations защищенное свойство

The list of available type transformations
protected XmlTypeTransformation[] typeTransformations
Результат XmlTypeTransformation[]