Exemple #1
0
        public static void UnionOverrideEqualsCorrectType(Int32 numberIterations)
        {
            UnionOverride a = new UnionOverride();

            a.i = 3;
            UnionOverride b = new UnionOverride();

            b.i = 4;
            for (int i = 0; i < numberIterations; ++i)
            {
                bool c = (a.Equals(b));
            }
        }
Exemple #2
0
        public override bool Equals(object o)
        {
            if (o == null)
            {
                return(false);
            }
            if (o.GetType() != typeof(UnionOverride))
            {
                return(false);
            }
            UnionOverride uo = (UnionOverride)o;

            return(i == uo.i && j == uo.j);
        }
Exemple #3
0
 public bool Equals(UnionOverride uo)
 {
     return(i == uo.i);
 }