C# Class NArrange.Core.CodeElements.UsingElement

Represents a using/import statement within code.
Inheritance: CommentedElement
Exibir arquivo Open project: MarcStan/NArrange Class Usage Examples

Public Methods

Method Description
Accept ( ICodeElementVisitor visitor ) : void

Allows an ICodeElementVisitor to process (or visit) this element.

See the Gang of Four Visitor design pattern.

UsingElement ( )

Creates a new Using directive code element.

UsingElement ( string name )

Creates a new Using directive code element.

UsingElement ( string name, string redefine )

Creates a new Using directive code element.

Protected Methods

Method Description
DoClone ( ) : CodeElement

Clones this instance.

Method Details

Accept() public method

Allows an ICodeElementVisitor to process (or visit) this element.
See the Gang of Four Visitor design pattern.
public Accept ( ICodeElementVisitor visitor ) : void
visitor ICodeElementVisitor The visitory that will accept the element.
return void

DoClone() protected method

Clones this instance.
protected DoClone ( ) : CodeElement
return CodeElement

UsingElement() public method

Creates a new Using directive code element.
public UsingElement ( )

UsingElement() public method

Creates a new Using directive code element.
public UsingElement ( string name )
name string Namespace or type name.

UsingElement() public method

Creates a new Using directive code element.
public UsingElement ( string name, string redefine )
name string Namespace or type name.
redefine string Redefined type or namespace.