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
TypeThe type to get its base classes.
includeObject
boolTrue, 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
TypeThe type to get its base classes.
stoppingType
TypeA type to stop going to the deeper base classes. This type will be be included in the returned array
includeObject
boolTrue, 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
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
Returns
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
Type Parameters
TTarget
Target type