C# 클래스 Fusion.Core.IniParser.Model.IniData

Represents all data from an INI file
상속: ICloneable
파일 보기 프로젝트 열기: demiurghg/FusionEngine 1 사용 예제들

공개 메소드들

메소드 설명
ClearAllComments ( ) : void

Deletes all comments in all sections and key values

Clone ( ) : object

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

GetKey ( string key ) : string

Retrieves a key using a single input string combining section and key name.

IniData ( ) : System

Initializes an empty IniData instance.

IniData ( IniData ori ) : System
IniData ( SectionDataCollection sdc ) : System

Initializes a new IniData instance using a previous SectionDataCollection.

Merge ( IniData toMergeIniData ) : void

Merges the other iniData into this one by overwriting existing values. Comments get appended.

ToString ( ) : string
ToString ( IIniDataFormatter formatter ) : string
TryGetKey ( string key, string &value ) : bool

Attempts to retrieve a key, using a single string combining section and key name.

this ( string sectionName ) : KeyDataCollection

Gets the KeyDataCollection instance with the specified section name.

비공개 메소드들

메소드 설명
MergeGlobal ( KeyDataCollection globals ) : void

Merges the given global values into this globals by overwriting existing values.

MergeSection ( SectionData otherSection ) : void

Merge the sections into this by overwriting this sections.

메소드 상세

ClearAllComments() 공개 메소드

Deletes all comments in all sections and key values
public ClearAllComments ( ) : void
리턴 void

Clone() 공개 메소드

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
리턴 object

GetKey() 공개 메소드

Retrieves a key using a single input string combining section and key name.
/// key contained multiple separators. ///
public GetKey ( string key ) : string
key string /// The section and key name to retrieve, separated by . /// /// If key contains no separator, it is treated as a key in the section. /// /// Key may contain no more than one separator character. ///
리턴 string

IniData() 공개 메소드

Initializes an empty IniData instance.
public IniData ( ) : System
리턴 System

IniData() 공개 메소드

public IniData ( IniData ori ) : System
ori IniData
리턴 System

IniData() 공개 메소드

Initializes a new IniData instance using a previous SectionDataCollection.
public IniData ( SectionDataCollection sdc ) : System
sdc SectionDataCollection /// object containing the /// data with the sections of the file ///
리턴 System

Merge() 공개 메소드

Merges the other iniData into this one by overwriting existing values. Comments get appended.
public Merge ( IniData toMergeIniData ) : void
toMergeIniData IniData /// IniData instance to merge into this. /// If it is null this operation does nothing. ///
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

ToString() 공개 메소드

public ToString ( IIniDataFormatter formatter ) : string
formatter IIniDataFormatter
리턴 string

TryGetKey() 공개 메소드

Attempts to retrieve a key, using a single string combining section and key name.
/// key contained multiple separators. ///
public TryGetKey ( string key, string &value ) : bool
key string /// The section and key name to retrieve, separated by . /// /// If key contains no separator, it is treated as a key in the section. /// /// Key may contain no more than one separator character. ///
value string /// If true is returned, is set to the value retrieved. Otherwise, is set /// to an empty string. ///
리턴 bool

this() 공개 메소드

Gets the KeyDataCollection instance with the specified section name.
public this ( string sectionName ) : KeyDataCollection
sectionName string
리턴 KeyDataCollection