C# 클래스 CsDebugScript.CodeGen.UserTypes.EnumUserType

User type that represents Enum.
상속: UserType
파일 보기 프로젝트 열기: southpolenator/WinDbgCs 1 사용 예제들

공개 메소드들

메소드 설명
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