object GetDefaultValue(SettingDescriptor setting) { return(setting.DefaultValue ?? ConvertValue(null, setting)); }
object ConvertValue(string storedValue, SettingDescriptor setting) { return(ConvertValue(storedValue, setting.UnderlyingType)); }
internal static string GetKey <T>(SettingDescriptor setting) { var settingsType = typeof(T); return(string.Format("{0}.{1}", settingsType.FullName, setting.Property.Name)); }