C# Class Paralect.Schematra.EnumTypeBuilder

Inheritance: EnumType
显示文件 Open project: paralect/Schematra Class Usage Examples

Public Methods

Method Description
AddConstant ( Int32 index, String name ) : EnumTypeBuilder
Create ( ) : EnumType
EnumTypeBuilder ( TypeContext typeContext ) : System
SetName ( String fullName ) : EnumTypeBuilder

Define name by full name

SetName ( String name, String @namespace ) : EnumTypeBuilder

Define name by name and @namespace

Method Details

AddConstant() public method

public AddConstant ( Int32 index, String name ) : EnumTypeBuilder
index System.Int32
name String
return EnumTypeBuilder

Create() public method

public Create ( ) : EnumType
return EnumType

EnumTypeBuilder() public method

public EnumTypeBuilder ( TypeContext typeContext ) : System
typeContext TypeContext
return System

SetName() public method

Define name by full name
public SetName ( String fullName ) : EnumTypeBuilder
fullName String
return EnumTypeBuilder

SetName() public method

Define name by name and @namespace
public SetName ( String name, String @namespace ) : EnumTypeBuilder
name String
@namespace String
return EnumTypeBuilder