C# Class GitHub.Helpers.SettingsStore

Mostrar archivo Open project: github/VisualStudio

Public Methods

Method Description
Read ( string property, object defaultValue ) : object
Read ( string subpath, string property, object defaultValue ) : object

Read from a settings store

SettingsStore ( WritableSettingsStore store, string root ) : System.IO
Write ( string property, object value ) : void
Write ( string subpath, string property, object value ) : void

Method Details

Read() public method

public Read ( string property, object defaultValue ) : object
property string
defaultValue object
return object

Read() public method

Read from a settings store
public Read ( string subpath, string property, object defaultValue ) : object
subpath string The subcollection path (appended to the path passed to the constructor)
property string The property name to read
defaultValue object The default value to use in case the property doesn't exist. /// The type of the default value will be used to figure out the proper way to read the property, so if pass null, /// the property will be read as a string (which may or may not be what you want)
return object

SettingsStore() public method

public SettingsStore ( WritableSettingsStore store, string root ) : System.IO
store WritableSettingsStore
root string
return System.IO

Write() public method

public Write ( string property, object value ) : void
property string
value object
return void

Write() public method

public Write ( string subpath, string property, object value ) : void
subpath string
property string
value object
return void