Skip to content

Commit cdce86b

Browse files
authored
Change string marshalling to LPUTF8Str (#48795)
1 parent f3edf6e commit cdce86b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/standard/native-interop/type-marshalling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Marshalling is needed because the types in the managed and unmanaged code are di
1212

1313
```csharp
1414
[LibraryImport("somenativelibrary.dll")]
15-
static extern int MethodA([MarshalAs(UnmanagedType.LPStr)] string parameter);
15+
static extern int MethodA([MarshalAs(UnmanagedType.LPUTF8Str)] string parameter);
1616

1717
// or
1818

0 commit comments

Comments
 (0)