C# Class CsDebugScript.CodeGen.UserTypes.EnumUserType

User type that represents Enum.
Inheritance: UserType
Afficher le fichier Open project: southpolenator/WinDbgCs Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat System

WriteCode() public méthode

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.
Résultat void