C# 클래스 Google.ProtocolBuffers.TextGenerator

Helper class to control indentation. Used for TextFormat and by ProtoGen.
파일 보기 프로젝트 열기: ayende/dotnet-protobufs 1 사용 예제들

공개 메소드들

메소드 설명
Indent ( ) : void

Indents text by two spaces. After calling Indent(), two spaces will be inserted at the beginning of each line of text. Indent() may be called multiple times to produce deeper indents.

Outdent ( ) : void

Reduces the current indent level by two spaces.

Print ( string text ) : void

Prints the given text to the output stream, indenting at line boundaries.

TextGenerator ( TextWriter writer ) : System

Creates a generator writing to the given writer. The writer is not closed by this class.

Write ( string format ) : void
WriteLine ( ) : void
WriteLine ( string text ) : void

메소드 상세

Indent() 공개 메소드

Indents text by two spaces. After calling Indent(), two spaces will be inserted at the beginning of each line of text. Indent() may be called multiple times to produce deeper indents.
public Indent ( ) : void
리턴 void

Outdent() 공개 메소드

Reduces the current indent level by two spaces.
public Outdent ( ) : void
리턴 void

Print() 공개 메소드

Prints the given text to the output stream, indenting at line boundaries.
public Print ( string text ) : void
text string
리턴 void

TextGenerator() 공개 메소드

Creates a generator writing to the given writer. The writer is not closed by this class.
public TextGenerator ( TextWriter writer ) : System
writer System.IO.TextWriter
리턴 System

Write() 공개 메소드

public Write ( string format ) : void
format string
리턴 void

WriteLine() 공개 메소드

public WriteLine ( ) : void
리턴 void

WriteLine() 공개 메소드

public WriteLine ( string text ) : void
text string
리턴 void