You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Runtime.InteropServices/Marshal.xml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6168,7 +6168,7 @@ There is a difference in the behavior of the `GetLastWin32Error` method on .NET
6168
6168
<AssemblyVersion>4.2.0.0</AssemblyVersion>
6169
6169
</AssemblyInfo>
6170
6170
<Docs>
6171
-
<summary>Allocates a managed <see cref="T:System.String" /> and copies all or part of an unmanaged ANSI string into it.</summary>
6171
+
<summary>Allocates a managed <see cref="T:System.String" /> and copies all or part of an unmanaged ANSI (on Windows) or UTF-8 (on Unix) string into it.</summary>
6172
6172
</Docs>
6173
6173
</MemberGroup>
6174
6174
<Member MemberName="PtrToStringAnsi">
@@ -6216,8 +6216,8 @@ There is a difference in the behavior of the `GetLastWin32Error` method on .NET
6216
6216
</Parameters>
6217
6217
<Docs>
6218
6218
<param name="ptr">The address of the first character of the unmanaged string.</param>
6219
-
<summary>Copies all characters up to the first null character from an unmanaged ANSI string to a managed <see cref="T:System.String" />, and widens each ANSI character to Unicode.</summary>
6220
-
<returns>A managed string that holds a copy of the unmanaged ANSI string. If <paramref name="ptr" /> is <see langword="null" />, the method returns a null string.</returns>
6219
+
<summary>Copies all characters up to the first null character from an unmanaged ANSI or UTF-8 string to a managed <see cref="T:System.String" />, and widens each character to UTF-16.</summary>
6220
+
<returns>A managed string that holds a copy of the unmanaged string. If <paramref name="ptr" /> is <see langword="null" />, the method returns a null string.</returns>
6221
6221
<remarks>
6222
6222
<format type="text/markdown"><![CDATA[
6223
6223
@@ -6284,8 +6284,8 @@ There is a difference in the behavior of the `GetLastWin32Error` method on .NET
6284
6284
<Docs>
6285
6285
<param name="ptr">The address of the first character of the unmanaged string.</param>
6286
6286
<param name="len">The byte count of the input string to copy.</param>
6287
-
<summary>Allocates a managed <see cref="T:System.String" />, copies a specified number of characters from an unmanaged ANSI string into it, and widens each ANSI character to Unicode.</summary>
6288
-
<returns>A managed string that holds a copy of the native ANSI string if the value of the <paramref name="ptr" /> parameter is not <see langword="null" />; otherwise, this method returns <see langword="null" />.</returns>
6287
+
<summary>Allocates a managed <see cref="T:System.String" />, copies a specified number of characters from an unmanaged ANSI or UTF-8 string into it, and widens each character to UTF-16.</summary>
6288
+
<returns>A managed string that holds a copy of the native string if the value of the <paramref name="ptr" /> parameter is not <see langword="null" />; otherwise, this method returns <see langword="null" />.</returns>
0 commit comments