コード例 #1
0
 internal void ResetProperties()
 {
     if (this._attributes != null)
     {
         this._attributes.Clear();
         _properties.Clear();
         _properties.Add(_propName);
         _properties.Add(_propValue);
     }
 }
コード例 #2
0
 internal void ResetProperties()
 {
     // blow away any UnrecognizedAttributes that we have deserialized earlier
     if (_attributes != null)
     {
         _attributes.Clear();
         _properties.Clear();
         _properties.Add(_propName);
         _properties.Add(_propValue);
     }
 }
コード例 #3
0
 static LoggerProfileSection()
 {
     _propSettings =
         new ConfigurationProperty(null,
                                   typeof(LoggerProfileSettingsCollection),
                                   null,
                                   ConfigurationPropertyOptions.IsDefaultCollection);
     _properties = new ConfigurationPropertyCollection();
     _properties.Clear();
     _properties.Add(_propSettings);
 }
コード例 #4
0
 internal void ResetProperties()
 {
     if (this._attributes != null)
     {
         this._attributes.Clear();
         _properties.Clear();
         _properties.Add(_propName);
         _properties.Add(_propSwitchName);
         _properties.Add(_propSwitchValue);
         _properties.Add(_propSwitchType);
         _properties.Add(_propListeners);
     }
 }
コード例 #5
0
 // Clear the property.
 public void ClearCollection()
 {
     Properties.Clear();
 }