protected virtual void EnsureElements() { if (null == this._elements) { this._elements = new ConfigurationElementsCollection(this); } }
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; }
protected virtual void EnsureElements() { if (null == this._elements) { this._elements = new ConfigurationElementsCollection(this); } }