C# Class NArrange.Core.CodeWriter

Base class for writing code elements to a file.
Inheritance: ICodeElementWriter
显示文件 Open project: MarcStan/NArrange

Public Methods

Method Description
Write ( ReadOnlyCollection codeElements, TextWriter writer ) : void

Writes code elements to the specified text writer.

WriteVisitElements ( ReadOnlyCollection codeElements, TextWriter writer, ICodeElementVisitor visitor ) : void

Writes each element using the specified visitor.

Protected Methods

Method Description
DoWriteElements ( ReadOnlyCollection codeElements, TextWriter writer ) : void

Template method for inheritors to write a collection of code elements to the specified text writer.

Method Details

DoWriteElements() protected abstract method

Template method for inheritors to write a collection of code elements to the specified text writer.
protected abstract DoWriteElements ( ReadOnlyCollection codeElements, TextWriter writer ) : void
codeElements ReadOnlyCollection The code elements.
writer System.IO.TextWriter The writer.
return void

Write() public method

Writes code elements to the specified text writer.
public Write ( ReadOnlyCollection codeElements, TextWriter writer ) : void
codeElements ReadOnlyCollection Read only collection of elements
writer System.IO.TextWriter Code file writer
return void

WriteVisitElements() public static method

Writes each element using the specified visitor.
public static WriteVisitElements ( ReadOnlyCollection codeElements, TextWriter writer, ICodeElementVisitor visitor ) : void
codeElements ReadOnlyCollection The code elements.
writer System.IO.TextWriter The writer.
visitor ICodeElementVisitor The visitor.
return void