示例#1
0
 public bool Equals(AreaSpriteCommand other)
 {
     return(!Size.Equals(other.Size)
         ? false
         : !Value1.Equals(other.Value1) || Value2.Equals(other.Value2)
             ? false
             : Size == 2 || Value3.Equals(other.Value3));
 }
示例#2
0
 public bool Equals(AreaObjectCommand other)
 {
     return(!Size.Equals(other.Size)
         ? false
         : !Value1.Equals(other.Value1) || !Value2.Equals(other.Value2)
         ? false
         : Size == 3
         ? Value3.Equals(other.Value3)
         : true);
 }
 protected bool Equals(TestEntityWithAllTypes other)
 {
     return
         (Id == other.Id &&
          Value1.Equals(other.Value1) &&
          Value2.Equals(other.Value2) &&
          Value3.Equals(other.Value3) &&
          Value4.Equals(other.Value4) &&
          Value5.Equals(other.Value5) &&
          Value6.Equals(other.Value6) &&
          Value7.Equals(other.Value7) &&
          Value8.Equals(other.Value8) &&
          Value9.Equals(other.Value9) &&
          Value10.Equals(other.Value10) &&
          Value12.IsEquals(other.Value12) &&
          string.Equals(Value14, other.Value14) &&
          Value15.Equals(other.Value15));
 }