コード例 #1
0
ファイル: DesignImage.cs プロジェクト: vahmax/Samples14
        /// <summary>
        /// Compares this object to another <see cref="DesignImage"/>.
        /// </summary>
        public int CompareTo(DesignImage other)
        {
            int delta = ImageSource == null ? -1 : ImageSource.CompareTo(other.ImageSource);

            if (delta == 0)
            {
                delta = ImageValue == null ? -1 : ImageValue.CompareTo(other.ImageValue);
            }
            if (delta == 0)
            {
                delta = MimeType == null ? -1 : MimeType.CompareTo(other.MimeType);
            }
            return(delta);
        }