示例#1
0
 internal PropertiesI(PropertiesI p) : this()
 {
     foreach (KeyValuePair <string, PropertyValue> entry in p._properties)
     {
         _properties[entry.Key] = new PropertyValue(entry.Value);
     }
 }
示例#2
0
 internal PropertiesI(PropertiesI p)
 {
     _properties = new Hashtable();
     foreach(DictionaryEntry entry in p._properties)
     {
         _properties[entry.Key] = new PropertyValue((PropertyValue)entry.Value);
     }
 }
示例#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);
     }
 }
示例#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);
     }
 }