src/Mimp.SeeSharper.Reflection/TypeExtensions.Inherit.cs
/// <summary>
/// Check if inherit or assignable to <typeparamref name="T"/>.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="type"></param>
/// <returns></returns>
/// <exception cref="ArgumentNullException"></exception>
Check if inherit or assignable to .
Check if inherit or assignable to .
public static bool InheritOrAssignable<T>(this Type type)
        {
            if (type is null)
                throw new ArgumentNullException(nameof(type));
            return type.InheritOrAssignable(typeof(T));
        }
public static bool InheritOrAssignable < T > ( this Type type ) { if ( type is null ) throw new ArgumentNullException ( nameof ( type ) ) ; return type . InheritOrAssignable ( typeof ( T ) ) ; }
Check if inherit or assignable to .
Check if inherit or assignable to .
None
None
Type
this
type
None
typeparam
None