C# Class NuGet.Settings

Inheritance: ISettings
Exibir arquivo Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method Description
DeleteSection ( string section ) : bool
DeleteValue ( string section, string key ) : bool
GetNestedValues ( string section, string key ) : string>>.IList
GetValue ( string section, string key ) : string
GetValues ( string section ) : string>>.IList
LoadDefaultSettings ( ) : ISettings
SetNestedValues ( string section, string key, string>.IList values ) : void
SetValue ( string section, string key, string value ) : void
SetValues ( string section, string>.IList values ) : void
Settings ( IFileSystem fileSystem ) : System

Private Methods

Method Description
EmptyList ( ) : string>>.IList
FindElementByKey ( System.Xml.Linq.XElement sectionElement, string key ) : System.Xml.Linq.XElement
GetOrCreateSection ( System.Xml.Linq.XElement parentElement, string sectionName ) : System.Xml.Linq.XElement
GetSection ( System.Xml.Linq.XElement parentElement, string section ) : System.Xml.Linq.XElement
ReadValue ( System.Xml.Linq.XElement element ) : string>.KeyValuePair
Save ( ) : void
SetValueInternal ( System.Xml.Linq.XElement sectionElement, string key, string value ) : void

Method Details

DeleteSection() public method

public DeleteSection ( string section ) : bool
section string
return bool

DeleteValue() public method

public DeleteValue ( string section, string key ) : bool
section string
key string
return bool

GetNestedValues() public method

public GetNestedValues ( string section, string key ) : string>>.IList
section string
key string
return string>>.IList

GetValue() public method

public GetValue ( string section, string key ) : string
section string
key string
return string

GetValues() public method

public GetValues ( string section ) : string>>.IList
section string
return string>>.IList

LoadDefaultSettings() public static method

public static LoadDefaultSettings ( ) : ISettings
return ISettings

SetNestedValues() public method

public SetNestedValues ( string section, string key, string>.IList values ) : void
section string
key string
values string>.IList
return void

SetValue() public method

public SetValue ( string section, string key, string value ) : void
section string
key string
value string
return void

SetValues() public method

public SetValues ( string section, string>.IList values ) : void
section string
values string>.IList
return void

Settings() public method

public Settings ( IFileSystem fileSystem ) : System
fileSystem IFileSystem
return System