Skip to content

Marshalling Data with P/Invoke: missing examples using CreateTestClass/DestroyTestClass #54833

Description

@galexite

Type of issue

Missing information

Description

CreateTestClass and DestroyTestClass which creates and frees a pointer to a C++ class instance are defined, supposedly to be used in an example that demonstrates how to manage marshalling of foreign heap-allocated types, but they are never used elsewhere in the documentation.

Page URL

https://learn.microsoft.com/en-us/dotnet/standard/native-interop/marshalling-data-with-platform-invoke

Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/native-interop/marshalling-data-with-platform-invoke.md

Document Version Independent Id

b5c6bcb4-9e51-d504-37c1-cff6d4a6a0c8

Platform Id

9924f606-de4a-d154-e7dc-fe0499f0af65

Article author

@jkoritzinsky

Metadata

  • ID: e7006fb8-6f5a-f187-ac43-818acd7938bd
  • PlatformId: 9924f606-de4a-d154-e7dc-fe0499f0af65
  • Service: dotnet-fundamentals

Related Issues

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions