1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 
5 namespace System.Configuration
6 {
7     public class ProtectedProviderSettings : ConfigurationElement
8     {
9         private readonly ConfigurationProperty _propProviders =
10             new ConfigurationProperty(
11                 name: null,
12                 type: typeof(ProviderSettingsCollection),
13                 defaultValue: null,
14                 options: ConfigurationPropertyOptions.IsDefaultCollection);
15 
16         private readonly ConfigurationPropertyCollection _properties;
17 
ProtectedProviderSettings()18         public ProtectedProviderSettings()
19         {
20             // Property initialization
21             _properties = new ConfigurationPropertyCollection { _propProviders };
22         }
23 
24         protected internal override ConfigurationPropertyCollection Properties => _properties;
25 
26         [ConfigurationProperty("", IsDefaultCollection = true, Options = ConfigurationPropertyOptions.IsDefaultCollection)]
27         public ProviderSettingsCollection Providers => (ProviderSettingsCollection)base[_propProviders];
28     }
29 }