C# Class CsDebugScript.CodeGen.UserTypes.EnumUserType

User type that represents Enum.
Inheritance: UserType
Mostra file Open project: southpolenator/WinDbgCs Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

EnumUserType() public method

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.
return System

WriteCode() public method

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.
return void