C# Класс NArrange.Core.CodeElements.CodeElement

Code element base class.
Наследование: ICodeElement
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Accept ( ICodeElementVisitor visitor ) : void

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

See the Gang of Four Visitor design pattern.

AddChild ( ICodeElement childElement ) : void

Adds a child to this element.

ClearChildren ( ) : void

Removes all child elements.

Clone ( ) : object

Creates a new object that is a copy of the current instance.

InsertChild ( int index, ICodeElement childElement ) : void

Inserts a child element at the specified index.

RemoveChild ( ICodeElement childElement ) : void

Removes a child from this element.

ToString ( ) : string

Gets the string representation of this object.

ToString ( string format ) : string

Gets a string representation of this object using the specified format string.

this ( string key ) : object

Gets or sets an extended property.

Защищенные методы

Метод Описание
CodeElement ( ) : System.Collections.Generic

Default constructor.

DoClone ( ) : CodeElement

Creates a clone of the instance and assigns any state.

Описание методов

Accept() публичный абстрактный Метод

Allows an ICodeElementVisitor to process (or visit) this element.
See the Gang of Four Visitor design pattern.
public abstract Accept ( ICodeElementVisitor visitor ) : void
visitor ICodeElementVisitor Visitor to accept the code element.
Результат void

AddChild() публичный Метод

Adds a child to this element.
public AddChild ( ICodeElement childElement ) : void
childElement ICodeElement Child to add.
Результат void

ClearChildren() публичный Метод

Removes all child elements.
public ClearChildren ( ) : void
Результат void

Clone() публичный Метод

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
Результат object

CodeElement() защищенный Метод

Default constructor.
protected CodeElement ( ) : System.Collections.Generic
Результат System.Collections.Generic

DoClone() защищенный абстрактный Метод

Creates a clone of the instance and assigns any state.
protected abstract DoClone ( ) : CodeElement
Результат CodeElement

InsertChild() публичный Метод

Inserts a child element at the specified index.
public InsertChild ( int index, ICodeElement childElement ) : void
index int Index to insert at.
childElement ICodeElement Element to insert.
Результат void

RemoveChild() публичный Метод

Removes a child from this element.
public RemoveChild ( ICodeElement childElement ) : void
childElement ICodeElement Child element to remove.
Результат void

ToString() публичный Метод

Gets the string representation of this object.
public ToString ( ) : string
Результат string

ToString() публичный Метод

Gets a string representation of this object using the specified format string.
public ToString ( string format ) : string
format string Code element format string.
Результат string

this() публичный Метод

Gets or sets an extended property.
public this ( string key ) : object
key string Extended property name/key.
Результат object