Table of Contents

HasComparableImplementation Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/TypeExtensions.cs

HasComparableImplementation(Type)

Determines whether the specified type implements either IComparable or IComparable<T>.

public static bool HasComparableImplementation(this Type type)

Parameters

type Type

The Type to extend.

Returns

bool

true if the specified type implements either IComparable or IComparable<T>; otherwise, false.

Exceptions

ArgumentNullException

type cannot be null.