Provides extension methods for the Type type.
Inheritance Hierarchy
KGySoft.CoreLibrariesTypeExtensions
Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.5.0-rc.1
Syntax
The TypeExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | CanAcceptValue |
Checks whether a value can be an instance of type when, for example,
value is passed to a method with type parameter type.
|
![]() ![]() | GetName(Type, TypeNameKind) |
Gets the name of the type by the specified kind.
See the Remarks section for details. |
![]() ![]() | GetName(Type, TypeNameKind, FuncType, AssemblyName, FuncType, String) |
Gets the name of the type by the specified kind using custom callbacks
for resolving the assembly and type names.
See the Remarks section of the GetName(Type, TypeNameKind) overload for details. |
![]() ![]() | IsDelegate |
Gets whether the specified type is a delegate.
|
![]() ![]() | IsFlagsEnum | |
![]() ![]() | IsGenericTypeOf |
Gets whether the given type is a generic type of the specified genericTypeDefinition.
|
![]() ![]() | IsImplementationOfGenericType(Type, Type) |
Gets whether the given type, its base classes or interfaces implement the specified genericTypeDefinition.
|
![]() ![]() | IsImplementationOfGenericType(Type, Type, Type) |
Gets whether the given type, its base classes or interfaces implement the specified genericTypeDefinition.
|
![]() ![]() | IsNullable |
Gets whether given type is a NullableT type.
|
![]() ![]() | RegisterConversion(Type, Type, Conversion) | |
![]() ![]() | RegisterConversion(Type, Type, ConversionAttempt) | |
![]() ![]() | RegisterTypeConverterTConverter |
Registers a type converter for a type.
|
See Also