C# Класс Monobjc.Tools.Generator.Parsers.Sgml.Node

This class models an XML node, an array of elements in scope is maintained while parsing for validation purposes, and these Node objects are reused to reduce object allocation, hence the reset method.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddAttribute ( string name, string value, char quotechar, bool caseInsensitive ) : Attribute
CopyAttributes ( Node n ) : void
GetAttribute ( int i ) : Attribute
GetAttribute ( string name ) : int
Reset ( string name, System.Xml.XmlNodeType nt, string value ) : void

Attribute objects are reused during parsing to reduce memory allocations, hence the Reset method.

Приватные методы

Метод Описание
RemoveAttribute ( string name ) : void

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

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

public AddAttribute ( string name, string value, char quotechar, bool caseInsensitive ) : Attribute
name string
value string
quotechar char
caseInsensitive bool
Результат Attribute

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

public CopyAttributes ( Node n ) : void
n Node
Результат void

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

public GetAttribute ( int i ) : Attribute
i int
Результат Attribute

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

public GetAttribute ( string name ) : int
name string
Результат int

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

Attribute objects are reused during parsing to reduce memory allocations, hence the Reset method.
public Reset ( string name, System.Xml.XmlNodeType nt, string value ) : void
name string
nt System.Xml.XmlNodeType
value string
Результат void