Пример #1
0
        public override bool Equals(object obj)
        {
            //
            // See the full list of guidelines at
            //   http://go.microsoft.com/fwlink/?LinkID=85237
            // and also the guidance for operator== at
            //   http://go.microsoft.com/fwlink/?LinkId=85238
            //

            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            // safe because of the GetType check
            Firma f = (Firma)obj;

            // use this pattern to compare reference members
            if (Lexema.Equals(f.Lexema))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }