Example #1
0
 public bool Equals(InstructionBlock x, InstructionBlock y)
 {
     if (x == null)
     {
         return(y == null);
     }
     if (y == null)
     {
         return(false);
     }
     if (x.first.get_Offset() != y.get_First().get_Offset())
     {
         return(false);
     }
     return(x.get_Last().get_Offset() == y.get_Last().get_Offset());
 }
Example #2
0
 public int CompareTo(InstructionBlock block)
 {
     return(this.first.get_Offset() - block.get_First().get_Offset());
 }