Example #1
0
            protected SettingsCollection GetOrCreateSettingsCollection(string collectionPath)
            {
                if (collectionPath == string.Empty)
                {
                    return(_rootCollection);
                }

                string[]           path       = collectionPath.Split('\\');
                SettingsCollection collection = _rootCollection;

                foreach (var segment in path)
                {
                    collection = collection.GetOrCreateSettingsCollection(segment);
                }

                return(collection);
            }