Obwohl das Marshalling einer verwalteten Struktur in eine nicht verwaltete Struktur möglich ist, schien es einfacher, eine verwaltete Klasse als Parametertyp zu erstellen, das Array zu durchlaufen und es in den C-API-Typ zu konvertieren, bevor die Daten übergeben werden.
While it's possible to marshal a managed struct to an unmanaged struct, it seemed easier to create a managed class as the parameter type and iterate through the array converting it to the C API type before passing the data.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.