Exemple #1
0
 internal PropertiesI(PropertiesI p) : this()
 {
     foreach (KeyValuePair <string, PropertyValue> entry in p._properties)
     {
         _properties[entry.Key] = new PropertyValue(entry.Value);
     }
 }
Exemple #2
0
 internal PropertiesI(PropertiesI p)
 {
     _properties = new Hashtable();
     foreach(DictionaryEntry entry in p._properties)
     {
         _properties[entry.Key] = new PropertyValue((PropertyValue)entry.Value);
     }
 }
Exemple #3
0
 internal PropertiesI(PropertiesI p)
 {
     //
     // NOTE: we can't just do a shallow copy of the map as the map values
     // would otherwise be shared between the two PropertiesI object.
     //
     //_properties = new Dictionary<string, PropertyValue>(p._properties);
     _properties = new Dictionary <string, PropertyValue>();
     foreach (KeyValuePair <string, PropertyValue> entry in p._properties)
     {
         _properties[entry.Key] = new PropertyValue(entry.Value);
     }
 }
Exemple #4
0
 internal PropertiesI(PropertiesI p)
 {
     //
     // NOTE: we can't just do a shallow copy of the map as the map values
     // would otherwise be shared between the two PropertiesI object.
     //
     //_properties = new Dictionary<string, PropertyValue>(p._properties);
     _properties = new Dictionary<string, PropertyValue>();
     foreach(KeyValuePair<string, PropertyValue> entry in p._properties)
     {
         _properties[entry.Key] = new PropertyValue(entry.Value);
     }
 }