Antmicro.Migrant.ObjectIdentifier.SetIdentifierForObject C# (CSharp) Method

SetIdentifierForObject() public method

Sets new identifier for object. REMARK: Setting new mapping of object to id does not remove the old one. As a reuslt, after this operation asking for id of old object and new object results in returing the same identifier. This behaviour is intended to support surrogated objects.
public SetIdentifierForObject ( object o, int id ) : void
o object Object
id int Identifier
return void
        public void SetIdentifierForObject(object o, int id)
        {
            objectToId[o] = id;
            idToObject[id] = o;
        }