C# Класс Fusion.Core.IniParser.Model.SectionData

Information associated to a section in a INI File Includes both the value and the comments associated to the key.
Наследование: ICloneable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ClearComments ( ) : void

Deletes all comments in this section and key/value pairs

ClearKeyData ( ) : void

Deletes all the key-value pairs in this section.

Clone ( ) : object

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

Merge ( SectionData toMergeSection ) : void

Merges otherSection into this, adding new keys if they don't exists or overwriting values if the key already exists. Comments get appended.

Comments are also merged but they are always added, not overwritten.

SectionData ( SectionData ori, IEqualityComparer searchComparer = null ) : System

Initializes a new instance of the SectionData class from a previous instance of SectionData.

Data is deeply copied

SectionData ( string sectionName ) : System
SectionData ( string sectionName, IEqualityComparer searchComparer ) : System

Initializes a new instance of the SectionData class.

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

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

Deletes all comments in this section and key/value pairs
public ClearComments ( ) : void
Результат void

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

Deletes all the key-value pairs in this section.
public ClearKeyData ( ) : void
Результат void

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

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

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

Merges otherSection into this, adding new keys if they don't exists or overwriting values if the key already exists. Comments get appended.
Comments are also merged but they are always added, not overwritten.
public Merge ( SectionData toMergeSection ) : void
toMergeSection SectionData
Результат void

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

Initializes a new instance of the SectionData class from a previous instance of SectionData.
Data is deeply copied
public SectionData ( SectionData ori, IEqualityComparer searchComparer = null ) : System
ori SectionData /// The instance of the class /// used to create the new instance. ///
searchComparer IEqualityComparer /// Search comparer. ///
Результат System

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

public SectionData ( string sectionName ) : System
sectionName string
Результат System

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

Initializes a new instance of the SectionData class.
public SectionData ( string sectionName, IEqualityComparer searchComparer ) : System
sectionName string
searchComparer IEqualityComparer
Результат System