Disclaimer: From MSDN 2005 Express, don't know right, Wahahaha
A platform-related type, its role is to describe a pointer or a handle
Namespace: system
AskMBLY: Mscorlib (in mscorlib.dll)
prototype
Visual Basic
Public Structure INTPTR IMPLEMENTS
ISerializable
C #
Public Struct INTPTR:
ISerializable
C
Public __Value struct INTPTR: PUBLIC
ISerializable
JScript
In JScript, you can only use the .NET Framework to provide an instance, you can't define your own instance.
The size of the INTPTR type is designed to be related to the platform, in a 32-bit system, his shaping size is 32-bit, while in the 64-bit system is 64-bit.
The INTPTR type can be capable of accessing data as a language that does not support pointers, in addition, INTPTR can also be used to store handles.
For example, INTPTR is the file handle in the System.IO.FileStream class.
One thing is important INTPTR is compatible with CLS, and uintptr is not. So only INTPTR can work in COMMON LANGUAGE RUNTIME. UINTPTR is mainly used to make up for the shortcomings of INTPTR.
This type implements the iSerializable interface.
This type is thread safe in multi-threaded operation.
This type can work in a platform
Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003
Support Net Framework1.1 and 2.0