コード例 #1
0
 public ObjectState(ObjectId id, ObjectTypeId typeId)
 {
     this.id = id;
     this.typeId = typeId;
     relations = new ObjectRelationCollection();
     attributes = new Dictionary<string, object>();
 }
コード例 #2
0
 private ObjectState(ObjectState objectStateToClone)
 {
     id = objectStateToClone.id;
     typeId = objectStateToClone.typeId;
     relations = objectStateToClone.relations.Clone();
     attributes = new Dictionary<string, object>(objectStateToClone.attributes);
 }
コード例 #3
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);
     }
 }
コード例 #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);
     }
 }