Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 protected bool Equals(SupportBeanVariantStream other)
 {
     return string.Equals(TheString, other.TheString) &&
            BoolBoxed == other.BoolBoxed &&
            IntPrimitive == other.IntPrimitive &&
            LongPrimitive == other.LongPrimitive &&
            DoublePrimitive.Equals(other.DoublePrimitive) &&
            EnumValue == other.EnumValue;
 }
Ejemplo n.º 3
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;
     }
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = TheString != null ? TheString.GetHashCode() : 0;
         hashCode = (hashCode * 397) ^ BoolBoxed.GetHashCode();
         hashCode = (hashCode * 397) ^ IntPrimitive.GetHashCode();
         hashCode = (hashCode * 397) ^ LongPrimitive;
         hashCode = (hashCode * 397) ^ DoublePrimitive.GetHashCode();
         hashCode = (hashCode * 397) ^ (int) EnumValue;
         return hashCode;
     }
 }