Show / Hide Table of Contents

Class AbpTypeExtensions

Inheritance
System.Object
AbpTypeExtensions
Namespace: System
Assembly: Volo.Abp.Core.dll
Syntax
public static class AbpTypeExtensions : object

Methods

GetBaseClasses(Type, Boolean)

Gets all base classes of this type.

Declaration
public static Type[] GetBaseClasses(this Type type, bool includeObject = true)
Parameters
Type Name Description
Type type

The type to get its base classes.

System.Boolean includeObject

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

Returns
Type Description
Type[]

GetFullNameWithAssemblyName(Type)

Declaration
public static string GetFullNameWithAssemblyName(this Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
System.String

IsAssignableTo(Type, Type)

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

Internally uses (as reverse).

Declaration
public static bool IsAssignableTo(this Type type, Type targetType)
Parameters
Type Name Description
Type type

this type

Type targetType

Target type

Returns
Type Description
System.Boolean

IsAssignableTo<TTarget>(Type)

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

Internally uses .

Declaration
public static bool IsAssignableTo<TTarget>(this Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
System.Boolean
Type Parameters
Name Description
TTarget

Target type

Back to top Powered by Volosoft