Esempio n. 1
0
        public override bool Equals(object obj)
        {
            MilitaryPlane plane = obj as MilitaryPlane;

            return(plane != null &&
                   base.Equals(obj) &&
                   Type == plane.Type);
        }
Esempio n. 2
0
        public bool Equals(MilitaryPlane plane)
        {
            bool isEqual = base.Equals(plane) && PlaneType == plane.PlaneType;

            return(isEqual);
        }