C# Class ProtocolBuffers.Code

Exibir arquivo Open project: enyim/ProtoBuf

Public Methods

Method Description
Comment ( string code ) : string
Indent ( int tabs, string code ) : string

Code.Indent all lines in the code string with given number of tabs

Indent ( string code ) : string

Code.Indent all lines in the code string with one tab

Prefix ( string prefix, string code ) : string

Method Details

Comment() public static method

public static Comment ( string code ) : string
code string
return string

Indent() public static method

Code.Indent all lines in the code string with given number of tabs
public static Indent ( int tabs, string code ) : string
tabs int
code string
return string

Indent() public static method

Code.Indent all lines in the code string with one tab
public static Indent ( string code ) : string
code string
return string

Prefix() public static method

public static Prefix ( string prefix, string code ) : string
prefix string
code string
return string