示例#1
0
        private static string ScopeRoot(SettingsScope scope)
        {
            switch (scope)
            {
            case SettingsScope.User: return("Preferences");

            case SettingsScope.Project: return("Project");

            default: throw scope.Unexpected();
            }
        }
        public static string ScopeName(SettingsScope scope)
        {
            switch (scope)
            {
            case SettingsScope.User: return("Preferences");

            case SettingsScope.Project: return("Project Settings");

            default: throw scope.Unexpected();
            }
        }
示例#3
0
        public IEnumerable <PluginConfigurationItemAccessor> this[SettingsScope scope]
        {
            get
            {
                switch (scope)
                {
                case SettingsScope.User: return(editorPrefs);

                case SettingsScope.Project: return(projectSettings);

                default: throw scope.Unexpected();
                }
            }
        }