public int CompareTo(BasicBlock other) { if (ReferenceEquals(this, other)) { return(0); } if (ReferenceEquals(null, other)) { return(1); } return(BlockId.CompareTo(other.BlockId)); }
public int CompareTo(CommandNumber other) { return(BlockId == other.BlockId ? CommandId.CompareTo(other.CommandId) : BlockId.CompareTo(other.BlockId)); }