Example #1
0
        public int CompareTo(object other)
        {
            RefreshRate refreshRate = (RefreshRate)other;

            if (refreshRate == null)
            {
                return(1);
            }

            return(this.Value.CompareTo(refreshRate.Value));
        }
Example #2
0
        public override bool Equals(object obj)
        {
            RefreshRate toCompare = (RefreshRate)obj;

            return(Value == toCompare.Value);
        }