Exemple #1
0
 protected bool Equals(SupportBean_N other)
 {
     return IntPrimitive == other.IntPrimitive &&
            IntBoxed == other.IntBoxed &&
            DoublePrimitive.Equals(other.DoublePrimitive) &&
            DoubleBoxed.Equals(other.DoubleBoxed) &&
            BoolPrimitive == other.BoolPrimitive &&
            BoolBoxed == other.BoolBoxed;
 }
Exemple #2
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = IntPrimitive;
         hashCode = (hashCode * 397) ^ IntBoxed.GetHashCode();
         hashCode = (hashCode * 397) ^ DoublePrimitive.GetHashCode();
         hashCode = (hashCode * 397) ^ DoubleBoxed.GetHashCode();
         hashCode = (hashCode * 397) ^ BoolPrimitive.GetHashCode();
         hashCode = (hashCode * 397) ^ BoolBoxed.GetHashCode();
         return hashCode;
     }
 }