示例#1
0
        public int CompareTo(Stop other)
        {
            if (other != null)
            {
                var a = InitiateAtGainPercentage.GetValueOrDefault();
                var b = other.InitiateAtGainPercentage.GetValueOrDefault();

                return(a == b
                    ? 0
                    : a < b
                        ? -1
                        : 1);
            }

            return(1);
        }
示例#2
0
 public override int GetHashCode()
 {
     return(InitiateAtGainPercentage.GetValueOrDefault().GetHashCode());
 }