Table of Contents

Class AbpTypeExtensions

Namespace
System
Assembly
Volo.Abp.Core.dll
public static class AbpTypeExtensions
Inheritance
AbpTypeExtensions
Inherited Members

Methods

GetBaseClasses(Type, bool)

Gets all base classes of this type.

public static Type[] GetBaseClasses(this Type type, bool includeObject = true)

Parameters

type Type

The type to get its base classes.

includeObject bool

True, to include the standard object type in the returned array.

Returns

Type[]

GetBaseClasses(Type, Type, bool)

Gets all base classes of this type.

public static Type[] GetBaseClasses(this Type type, Type stoppingType, bool includeObject = true)

Parameters

type Type

The type to get its base classes.

stoppingType Type

A type to stop going to the deeper base classes. This type will be be included in the returned array

includeObject bool

True, to include the standard object type in the returned array.

Returns

Type[]

GetFullNameWithAssemblyName(Type)

public static string GetFullNameWithAssemblyName(this Type type)

Parameters

type Type

Returns

string

IsAssignableTo(Type, Type)

Determines whether an instance of this type can be assigned to an instance of the targetType.

Internally uses IsAssignableFrom(Type) (as reverse).

public static bool IsAssignableTo(this Type type, Type targetType)

Parameters

type Type

this type

targetType Type

Target type

Returns

bool

IsAssignableTo<TTarget>(Type)

Determines whether an instance of this type can be assigned to an instance of the TTarget.

Internally uses IsAssignableFrom(Type).

public static bool IsAssignableTo<TTarget>(this Type type)

Parameters

type Type

Returns

bool

Type Parameters

TTarget

Target type