Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            OtherType2 ot = obj as OtherType2;

            if (ot != null)
            {
                return(m_struct.Equals(ot.m_struct));
            }
            return(false);
        }
Ejemplo n.º 2
0
        private ISerializable CreateOtherType(int i, int otherType)
        {
            ISerializable ot;

            switch (otherType)
            {
            case OTHER_TYPE1: ot = new OtherType(i, i + 20000); break;

            case OTHER_TYPE2: ot = new OtherType2(i, i + 20000); break;

            case OTHER_TYPE22: ot = new OtherType22(i, i + 20000); break;

            case OTHER_TYPE4: ot = new OtherType4(i, i + 20000); break;

            case OTHER_TYPE42: ot = new OtherType42(i, i + 20000); break;

            case OTHER_TYPE43: ot = new OtherType43(i, i + 20000); break;

            default: ot = new OtherType(i, i + 20000); break;
            }
            return(ot);
        }