Table of Contents

Class TypeExtensions

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

Extension members for Type.

public static class TypeExtensions
Inheritance
TypeExtensions
Inherited Members

Methods

IsSameOrSubclassOf(Type, string)

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

public static bool IsSameOrSubclassOf(this Type type, string baseTypeFullName)

Parameters

type Type
baseTypeFullName string

The full name of the base type.

Returns

bool

true if type is the same as or derived from a type named baseTypeFullName; otherwise, false.

Exceptions

ArgumentNullException

baseTypeFullName is null.

IsSameOrSubclassOf(Type, Type)

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

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

Parameters

type Type
baseType Type

The base type.

Returns

bool

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

Exceptions

ArgumentNullException

baseType is null.