C# Class Patcher.Rules.CodeBuilder

显示文件 Open project: unforbidable/patcher Class Usage Examples

Public Methods

Method Description
BeginMethod ( string name, Type sourceProxyType ) : void
BeginMethod ( string name, Type sourceProxyType, Type targetProxyType ) : void
CodeBuilder ( string namespaceName, string className, string comment ) : System
EndMethod ( ) : void
ReturnTrue ( ) : void
ToString ( ) : string
WriteCode ( string code ) : void
WriteCodeAsReturn ( string code ) : void

Private Methods

Method Description
Beautify ( string source ) : string
NamespaceIsValid ( string ns ) : bool

Method Details

BeginMethod() public method

public BeginMethod ( string name, Type sourceProxyType ) : void
name string
sourceProxyType System.Type
return void

BeginMethod() public method

public BeginMethod ( string name, Type sourceProxyType, Type targetProxyType ) : void
name string
sourceProxyType System.Type
targetProxyType System.Type
return void

CodeBuilder() public method

public CodeBuilder ( string namespaceName, string className, string comment ) : System
namespaceName string
className string
comment string
return System

EndMethod() public method

public EndMethod ( ) : void
return void

ReturnTrue() public method

public ReturnTrue ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

WriteCode() public method

public WriteCode ( string code ) : void
code string
return void

WriteCodeAsReturn() public method

public WriteCodeAsReturn ( string code ) : void
code string
return void