System.Configuration.ConfigurationElement.PropertiesFromType C# (CSharp) Метод

PropertiesFromType() приватный статический Метод

private static PropertiesFromType ( Type type, ConfigurationPropertyCollection &result ) : bool
type System.Type
result ConfigurationPropertyCollection
Результат bool
        private static bool PropertiesFromType(Type type, out ConfigurationPropertyCollection result) {
            ConfigurationPropertyCollection properties = (ConfigurationPropertyCollection)s_propertyBags[type];
            result = null; 
            bool firstTimeInit = false;
            if (properties == null) {
                lock (s_propertyBags.SyncRoot) {
                    properties = (ConfigurationPropertyCollection)s_propertyBags[type];
                    if (properties == null) {
                        properties = CreatePropertyBagFromType(type);
                        s_propertyBags[type] = properties;
                        firstTimeInit = true;
                    }
                }
            }
            result = properties;
            return firstTimeInit;
        }