C# Class NArrange.Core.CodeElements.CommentedElement

Code element base class for elements with header comments.
Inheritance: CodeElement
Show file Open project: MarcStan/NArrange Class Usage Examples

Public Methods

Method Description
AddHeaderComment ( ICommentElement comment ) : void

Adds a header comment to this element.

AddHeaderCommentLine ( string commentLine ) : void

Adds a header comment line to this element.

AddHeaderCommentLine ( string commentLine, bool xmlComment ) : void

Adds a header comment line to this element.

ClearHeaderCommentLines ( ) : void

Clears all header comments.

Clone ( ) : object

Creates a clone of the instance and assigns any state.

Method Details

AddHeaderComment() public method

Adds a header comment to this element.
public AddHeaderComment ( ICommentElement comment ) : void
comment ICommentElement The comment.
return void

AddHeaderCommentLine() public method

Adds a header comment line to this element.
public AddHeaderCommentLine ( string commentLine ) : void
commentLine string The comment line.
return void

AddHeaderCommentLine() public method

Adds a header comment line to this element.
public AddHeaderCommentLine ( string commentLine, bool xmlComment ) : void
commentLine string Comment line text.
xmlComment bool Whether or not the comment is an XML comment.
return void

ClearHeaderCommentLines() public method

Clears all header comments.
public ClearHeaderCommentLines ( ) : void
return void

Clone() public method

Creates a clone of the instance and assigns any state.
public Clone ( ) : object
return object