Method | Description | |
---|---|---|
AbstractProperty ( string name, string type, Access access = Access.Public ) : void |
Creates a new abstract property
|
|
Break ( ) : void |
Generates a break
|
|
CSharpEmitter ( string path ) : System |
Constructs a new csharp emitter
|
|
Case ( string expression ) : void |
Generates a case
|
|
Class ( string name, bool isAbstract = false, string bases = null, Access access = Access.Public ) : CSharpEmitter |
Enters a class
|
|
Constructor ( string name, Parameter parameters, Access access = Access.Public, bool deferDefault = false ) : CSharpEmitter |
Enters a new constructor
|
|
Default ( ) : void |
Enters a default case
|
|
Dispose ( ) : void |
Disposes of the emitter
|
|
EmitUsing ( string ns ) : void |
Emits a using clause
|
|
Enum ( string name, string baseType = "uint" ) : CSharpEmitter |
Enters an enum
|
|
EnumValue ( string name, int value, bool last = false ) : void |
Generates an enumeration value
|
|
IndentString ( int modifier ) : string |
Retrieves the current indentation string
|
|
Namespace ( string ns ) : CSharpEmitter |
Enters a namespace
|
|
OverrideProperty ( string name, string type, string body, Access access = Access.Public ) : void |
Overrides a get-only property
|
|
Property ( string name, string type, Access access = Access.Public, Access setter = Access.Private ) : void |
Creates a new property
|
|
Property ( string name, string type, string body, Access access = Access.Public ) : void |
Creates a new get-only property
|
|
StaticMethod ( string name, string returnType, Parameter parameters, Access access = Access.Public, bool @new = false ) : CSharpEmitter |
Enters a new static method
|
|
StaticReadonlyField ( string name, string type, string initializer, Access access = Access.Public, bool @new = false ) : void |
Creates a static readonly field
|
|
Struct ( string name, Access access = Access.Public ) : CSharpEmitter |
Enters a struct
|
|
Switch ( string expression ) : CSharpEmitter |
Enters a switch
|
|
WriteLine ( ) : void |
Writes a blank line
|
|
WriteLine ( string fmt ) : void |
Writes a single line to the stream
|
|
WriteLineRaw ( string text ) : void |
Writes a single line of raw text to the stream
|
Method | Description | |
---|---|---|
CSharpEmitter ( |
Constructs a scoped emitter
|
|
_newScope ( ) : CSharpEmitter |
Creates a new child scope emitter
|
public AbstractProperty ( string name, string type, Access access = Access.Public ) : void | ||
name | string | The name of the property |
type | string | The type of the property |
access | Access | The access specifier for the property |
return | void |
public CSharpEmitter ( string path ) : System | ||
path | string | |
return | System |
public Case ( string expression ) : void | ||
expression | string | The case expression |
return | void |
public Class ( string name, bool isAbstract = false, string bases = null, Access access = Access.Public ) : CSharpEmitter | ||
name | string | The name of the class |
isAbstract | bool | |
bases | string | The base types |
access | Access | |
return | CSharpEmitter |
public Constructor ( string name, Parameter parameters, Access access = Access.Public, bool deferDefault = false ) : CSharpEmitter | ||
name | string | The type name |
parameters | Parameter | The constructor parameters |
access | Access | |
deferDefault | bool | |
return | CSharpEmitter |
public Enum ( string name, string baseType = "uint" ) : CSharpEmitter | ||
name | string | The name of the enum |
baseType | string | The base type |
return | CSharpEmitter |
public EnumValue ( string name, int value, bool last = false ) : void | ||
name | string | The name of the value |
value | int | The value |
last | bool | |
return | void |
public IndentString ( int modifier ) : string | ||
modifier | int | The modifier to apply to the indentation level |
return | string |
public Namespace ( string ns ) : CSharpEmitter | ||
ns | string | The namespace |
return | CSharpEmitter |
public OverrideProperty ( string name, string type, string body, Access access = Access.Public ) : void | ||
name | string | The name of the property |
type | string | The type of the property |
body | string | The body of the property accessor |
access | Access | The access level of the property |
return | void |
public Property ( string name, string type, Access access = Access.Public, Access setter = Access.Private ) : void | ||
name | string | The name of the property |
type | string | The type of the property |
access | Access | The access specifier for the property |
setter | Access | The setter specifier for the property |
return | void |
public Property ( string name, string type, string body, Access access = Access.Public ) : void | ||
name | string | The name of the property |
type | string | The type of the property |
body | string | The body of the property |
access | Access | The access specifier for the property |
return | void |
public StaticMethod ( string name, string returnType, Parameter parameters, Access access = Access.Public, bool @new = false ) : CSharpEmitter | ||
name | string | The name of the method |
returnType | string | The return type of the method |
parameters | Parameter | The parameters of the method |
access | Access | The access specifier of the method |
@new | bool | |
return | CSharpEmitter |
public StaticReadonlyField ( string name, string type, string initializer, Access access = Access.Public, bool @new = false ) : void | ||
name | string | The name of the field |
type | string | The type of the field |
initializer | string | |
access | Access | The access specifier for the field |
@new | bool | |
return | void |
public Struct ( string name, Access access = Access.Public ) : CSharpEmitter | ||
name | string | The name of the struct |
access | Access | The access specifier for the struct |
return | CSharpEmitter |
public Switch ( string expression ) : CSharpEmitter | ||
expression | string | The expression to switch on |
return | CSharpEmitter |
public WriteLine ( string fmt ) : void | ||
fmt | string | The format string |
return | void |
public WriteLineRaw ( string text ) : void | ||
text | string | The text to write |
return | void |