Besonderhede van voorbeeld: -7825624801261579092

Metadata

Author: WikiMatrix

Data

English[en]
This type is often returned when using methods from the System.Runtime.InteropServices, for example: // Get 16 bytes of memory from the process's unmanaged memory IntPtr pointer = System.Runtime.InteropServices.Marshal.AllocHGlobal(16); // Do something with the allocated memory // Free the allocated memory System.Runtime.InteropServices.Marshal.FreeHGlobal(pointer); The .NET framework includes many classes and methods in the System and System.Runtime.InteropServices namespaces (such as the Marshal class) which convert .NET types (for example, System.String) to and from many unmanaged types and pointers (for example, LPWSTR or void*) to allow communication with unmanaged code.
Spanish[es]
Este tipo suele aparecer cuando el uso de métodos de las System.Runtime.InteropServices, por ejemplo: // Obtener 16 bytes de memoria de la memoria no administrada del proceso IntPtr pointer = System.Runtime.InteropServices.Marshal.AllocHGlobal(16); // Hacer algo con la memoria asignada // Liberar la memoria asignada System.Runtime.InteropServices.Marshal.FreeHGlobal(pointer); El .NET Framework incluye muchas clases y métodos en el sistema y los espacios de nombres System.Runtime.InteropServices (como la clase Marshal) que convierten tipos de.NET (por ejemplo, System.String) desde y hacia muchos tipos no administrados y punteros (por ejemplo, LPWSTR o void *) para permitir la comunicación con código no administrado.

History

Your action: