dotnet / dotnet/docs

Outdated - Update needed

Open
#36,242 0 comments 0 reactions 1 assignee Claimed by @gewarren View on GitHub
dotnet-framework/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

Hi,
there is a more recent article describing best practices for string marshalling (don't know about the other topics there):
[https://learn.microsoft.com/en-us/dotnet/standard/native-interop/best-practices#string-parameters](https://learn.microsoft.com/en-us/dotnet/standard/native-interop/best-practices#string-parameters)
Sadly it does not contain examples, so please update this page to reflect that information here as well. Especially the considerations about the usage of `StringBuilder`.

Cheers,
Dany

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 6de86b6e-fcc7-3d20-4a71-6df93c261769
* Version Independent ID: 9855800a-1100-f0cf-d4a8-e9b52b1f0409
* Content: [Marshalling Strings - .NET Framework](https://learn.microsoft.com/en-us/dotnet/framework/interop/marshalling-strings)
* Content Source: [docs/framework/interop/marshalling-strings.md](https://github.com/dotnet/docs/blob/main/docs/framework/interop/marshalling-strings.md)
* Product: **dotnet-framework**
* GitHub Login: @gewarren
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.