コード例 #1
0
ファイル: FinsnetAddress.cs プロジェクト: wangyanjun/incore
        /// <summary>
        /// Compare address
        /// </summary>
        /// <param name="other">other address to be compared</param>
        /// <returns>compare result</returns>
        public override int CompareTo(IAddress other)
        {
            if (!(other is FinsnetAddress x))
            {
                return(1);
            }

            var result = MemoryArea.CompareTo(x.MemoryArea);

            if (result == 0)
            {
                result = base.CompareTo(other);
            }

            return(result);
        }