Пример #1
0
        public bool Equals(Srm srm)
        {
            if (srm == null)
            {
                return(false);
            }
            if (srm.Name == null)
            {
                return(false);
            }

            return
                (this.Id == srm.Id &&
                 this.Name.ToLowerInvariant().IgnorePunctuation() == srm.Name.ToLowerInvariant().IgnorePunctuation() &&
                 this.High == srm.High &&
                 this.Low == srm.Low);
        }
Пример #2
0
        public bool Equals(Srm srm)
        {
            if (srm == null)
                return false;
            if (srm.Name == null)
                return false;

            return
                this.Id == srm.Id &&
                this.Name.ToLowerInvariant().IgnorePunctuation() == srm.Name.ToLowerInvariant().IgnorePunctuation() &&
                this.High == srm.High &&
                this.Low == srm.Low;
        }