ICorDebugType Interface
Represents a type, either basic or complex (that is, user-defined). If the type is generic, ICorDebugType represents the instantiated generic type.
Methods
Method |
Description |
---|---|
Gets an interface pointer to an ICorDebugTypeEnum that references the generic Type parameters of the class referenced by this ICorDebugType. |
|
Gets an interface pointer to an ICorDebugType that references the base class of the class referenced by this ICorDebugType, if one exists. |
|
Gets an interface pointer to an ICorDebugClass that references the typed constructor of this ICorDebugType. |
|
Gets an interface pointer to an ICorDebugType that references the first generic Type parameter for the constructor of the class referenced by this ICorDebugType. |
|
Gets the number of dimensions in an array type. |
|
Gets an interface pointer to an ICorDebugValue that contains the value of the static field referenced by the specified field token in the specified stack frame. |
|
Gets a CorElementType value that describes the native type of the common language runtime Type referenced by this ICorDebugType. |
Remarks
If the type is generic, ICorDebugClass represents the uninstantiated type. The ICorDebugType interface represents an instantiated generic type. For example, Hashtable<K, V> would be represented by ICorDebugClass, whereas Hashtable<Int32, String> would be represented by ICorDebugType.
Non-generic types are represented by both ICorDebugClass and ICorDebugType. The latter interface was introduced in the .NET Framework version 2.0 to deal with type instantiation.
Note |
---|
This interface does not support being called remotely, either cross-machine or cross-process. |
Requirements
Platforms: See .NET Framework System Requirements.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0