Ejemplo n.º 1
0
 protected virtual void EnsureElements()
 {
     if (null == this._elements)
     {
         this._elements = new ConfigurationElementsCollection(this);
     }
 }
Ejemplo n.º 2
0
 public ConfigurationElementsCollection(IConfigurationType parent, IConfigurationElementsCollection copy) : base(copy as Dictionary <string, IConfigurationElement>)
 {
     if (!(parent is IConfigurationSection) && !(parent is IConfigurationElement))
     {
         throw new InvalidOperationException("Parent must be a section or an element");
     }
     this._parent = parent;
 }
Ejemplo n.º 3
0
 protected virtual void EnsureElements()
 {
     if (null == this._elements)
     {
         this._elements = new ConfigurationElementsCollection(this);
     }
 }