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

User type that represents Enum.
Наследование: UserType
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
EnumUserType ( Symbol symbol, string nameSpace ) : System

Initializes a new instance of the EnumUserType class.

WriteCode ( IndentedWriter output, TextWriter error, UserTypeFactory factory, UserTypeGenerationFlags generationFlags, int indentation ) : void

Writes the code for this user type to the specified output.

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

Метод Описание
AreValuesFlags ( ) : bool

Checks whether values inside the enumeration are flags.

GetEnumBasicType ( Symbol symbol ) : string

Gets the basic type string for the specified enumeration symbol.

IsPowerOfTwo ( long x ) : bool

Determines whether the specified number is power of two.

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

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

Initializes a new instance of the EnumUserType class.
public EnumUserType ( Symbol symbol, string nameSpace ) : System
symbol Symbol The symbol we are generating this user type from.
nameSpace string The namespace it belongs to.
Результат System

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

Writes the code for this user type to the specified output.
public WriteCode ( IndentedWriter output, TextWriter error, UserTypeFactory factory, UserTypeGenerationFlags generationFlags, int indentation ) : void
output IndentedWriter The output.
error System.IO.TextWriter The error text writer.
factory UserTypeFactory The user type factory.
generationFlags UserTypeGenerationFlags The user type generation flags.
indentation int The current indentation.
Результат void