Exemplo n.º 1
0
            protected bool TryGetSettingsCollection(string collectionPath, out SettingsCollection collection)
            {
                collection = _rootCollection;
                if (collectionPath == string.Empty)
                {
                    return(true);
                }

                string[] path = collectionPath.Split('\\');
                foreach (var segment in path)
                {
                    if (!collection.TryGetSettingsCollection(segment, out collection))
                    {
                        return(false);
                    }
                }

                return(true);
            }