コード例 #1
0
        public static int Compare(this IPhoto photo1, IPhoto photo2)
        {
            int result = photo1.CompareDate(photo2);

            if (result == 0)
            {
                result = CompareDefaultVersionUri(photo1, photo2);
            }

            if (result == 0)
            {
                result = photo1.CompareName(photo2);
            }

            return(result);
        }