Exemple #1
0
 public new bool Equals(object x, object y)
 {
     if (x == y)
     {
         return(true);
     }
     if (x is DbgObjectIdImpl objectId1 && y is DbgValueImpl value1)
     {
         return(dbgEngineObjectIdFactory.Equals(objectId1.EngineObjectId, value1.EngineValue));
     }
     if (y is DbgObjectIdImpl objectId2 && x is DbgValueImpl value2)
     {
         return(dbgEngineObjectIdFactory.Equals(objectId2.EngineObjectId, value2.EngineValue));
     }
     return(false);
 }
Exemple #2
0
 /// <summary>
 /// Checks if an object id and a value refer to the same data
 /// </summary>
 /// <param name="objectId">Object id created by this class</param>
 /// <param name="value">Value created by this runtime</param>
 /// <returns></returns>
 public sealed override bool Equals(DbgEngineObjectId objectId, DbgEngineValue value) => dbgEngineObjectIdFactory.Equals(objectId, value);