KGy SOFT

TypeExtensions Class

KGy SOFT Core Libraries Help
Contains extension methods for the Type type.
Inheritance Hierarchy

SystemObject
  KGySoft.CoreLibrariesTypeExtensions

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public static class TypeExtensions

The TypeExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCanAcceptValue
Checks whether a value can be an instance of type when, for example, value is passed to a method with type parameter type.
Public methodStatic memberGetName(Type, TypeNameKind)
Gets the name of the type by the specified kind.
See the Remarks section for details.
Public methodStatic memberGetName(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.
Public methodStatic memberIsDelegate
Gets whether the specified type is a delegate.
Public methodStatic memberIsFlagsEnum
Determines whether the specified type is an enum and FlagsAttribute is defined on it.
Public methodStatic memberIsGenericTypeOf
Gets whether the given type is a generic type of the specified genericTypeDefinition.
Public methodStatic memberIsImplementationOfGenericType(Type, Type)
Gets whether the given type, its base classes or interfaces implement the specified genericTypeDefinition.
Public methodStatic memberIsImplementationOfGenericType(Type, Type, Type)
Gets whether the given type, its base classes or interfaces implement the specified genericTypeDefinition.
Public methodStatic memberIsNullable
Gets whether given type is a NullableT type.
Public methodStatic memberRegisterConversion(Type, Type, Conversion)
Registers a Conversion from the specified sourceType to targetType.
Public methodStatic memberRegisterConversion(Type, Type, ConversionAttempt)
Registers a ConversionAttempt from the specified sourceType to targetType.
Public methodStatic memberRegisterTypeConverterTConverter
Registers a type converter for a type.
Top
See Also

Reference