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
파일 보기 프로젝트 열기: demiurghg/FusionEngine 1 사용 예제들

공개 메소드들

메소드 설명
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