public ObjectState(ObjectId id, ObjectTypeId typeId)
 {
     this.id = id;
     this.typeId = typeId;
     relations = new ObjectRelationCollection();
     attributes = new Dictionary<string, object>();
 }
 private ObjectState(ObjectState objectStateToClone)
 {
     id = objectStateToClone.id;
     typeId = objectStateToClone.typeId;
     relations = objectStateToClone.relations.Clone();
     attributes = new Dictionary<string, object>(objectStateToClone.attributes);
 }
 private ObjectRelationCollection(ObjectRelationCollection collectionToClone)
 {
     relations = new Dictionary<string, List<ObjectId>>();
     foreach (var pair in collectionToClone.relations)
     {
         var clonedList = new List<ObjectId>(pair.Value);
         relations.Add(pair.Key, clonedList);
     }
 }
Ejemplo n.º 4
0
 private ObjectRelationCollection(ObjectRelationCollection collectionToClone)
 {
     relations = new Dictionary <string, List <ObjectId> >();
     foreach (var pair in collectionToClone.relations)
     {
         var clonedList = new List <ObjectId>(pair.Value);
         relations.Add(pair.Key, clonedList);
     }
 }