src/Shared/EntityFramework/Internal/SortableBindingList`.cs
// <summary>
// Determines whether this instance can sort for the specified type using IComparable.
// </summary>
// <param name="type"> The type. </param>
// <returns>
// <c>true</c> if this instance can sort for the specified type; otherwise, <c>false</c> .
// </returns>
Determines whether this instance can sort for the specified type using IComparable.
Determines whether this instance can sort for the specified type using IComparable .
private static bool CanSortWithIComparable(Type type)
            {
                return type.GetInterface("IComparable") != null ||
                       (type.IsGenericType() && type.GetGenericTypeDefinition() == typeof(Nullable<>));
            }
private static bool CanSortWithIComparable ( Type type ) { return type . GetInterface ( " " ) != null || ( type . IsGenericType ( ) && type . GetGenericTypeDefinition ( ) == typeof ( Nullable < > ) ) ; }
Determines whether this instance can sort for the specified type using IComparable.
Determines whether this instance can sort for the specified type using IComparable .
None
type
Type
None