C# 클래스 IniParser, Castle-Bashers

파일 보기 프로젝트 열기: DevelopersGuild/Castle-Bashers 1 사용 예제들

공개 메소드들

메소드 설명
AddSetting ( String sectionName, String settingName ) : void

Adds or replaces a setting to the table to be saved with a null value.

AddSetting ( String sectionName, String settingName, String settingValue ) : void

Adds or replaces a setting to the table to be saved.

DeleteSetting ( String sectionName, String settingName ) : void

Remove a setting.

EnumSection ( String sectionName ) : String[]

Enumerates all lines for given section.

GetSetting ( String sectionName, String settingName ) : String

Returns the value for the given section, key pair.

IniParser ( String iniPath ) : System

Opens the INI file at the given path and enumerates the values in the IniParser.

SaveSettings ( ) : void

Save settings back to ini file.

SaveSettings ( String newFilePath ) : void

Save settings to new file.

메소드 상세

AddSetting() 공개 메소드

Adds or replaces a setting to the table to be saved with a null value.
public AddSetting ( String sectionName, String settingName ) : void
sectionName String Section to add under.
settingName String Key name to add.
리턴 void

AddSetting() 공개 메소드

Adds or replaces a setting to the table to be saved.
public AddSetting ( String sectionName, String settingName, String settingValue ) : void
sectionName String Section to add under.
settingName String Key name to add.
settingValue String Value of key.
리턴 void

DeleteSetting() 공개 메소드

Remove a setting.
public DeleteSetting ( String sectionName, String settingName ) : void
sectionName String Section to add under.
settingName String Key name to add.
리턴 void

EnumSection() 공개 메소드

Enumerates all lines for given section.
public EnumSection ( String sectionName ) : String[]
sectionName String Section to enum.
리턴 String[]

GetSetting() 공개 메소드

Returns the value for the given section, key pair.
public GetSetting ( String sectionName, String settingName ) : String
sectionName String Section name.
settingName String Key name.
리턴 String

IniParser() 공개 메소드

Opens the INI file at the given path and enumerates the values in the IniParser.
public IniParser ( String iniPath ) : System
iniPath String Full path to INI file.
리턴 System

SaveSettings() 공개 메소드

Save settings back to ini file.
public SaveSettings ( ) : void
리턴 void

SaveSettings() 공개 메소드

Save settings to new file.
public SaveSettings ( String newFilePath ) : void
newFilePath String New file path.
리턴 void