Esempio n. 1
0
        public IDictionary <String, String> ToDictionary()
        {
            var cascadedProperties = new MemoryProperties();

            for (var i = properties.Length - 1; i >= 0; i--)
            {
                Patch(cascadedProperties, properties[i]);
            }

            return(cascadedProperties.ToDictionary());
        }
Esempio n. 2
0
        public IDictionary <String, String> ToDictionary()
        {
            var properties = cache.TryRead();

            if (properties != null)
            {
                return(properties.ToDictionary());
            }

            properties = new MemoryProperties(source.ToDictionary());

            cache.Write(properties);

            return(properties.ToDictionary());
        }