Table of Contents

Class TypeExtensions

Namespace
Acuit.Pinpoint.Common.Extensions
Assembly
Acuit.Pinpoint.Common.dll

Extension methods for Type.

public static class TypeExtensions
Inheritance
TypeExtensions
Inherited Members

Methods

IsSameOrSubclassOf(Type, Type)

Determines if a type is the same or derived from another type.

public static bool IsSameOrSubclassOf(this Type type, Type baseType)

Parameters

type Type

The type to check.

baseType Type

The base type.

Returns

bool

true if type is the same as or derived from baseType; otherwise, false.

Exceptions

ArgumentNullException

type is null.

ArgumentNullException

baseType is null.