Skip to content

Commit c68ce3c

Browse files
author
Ron Petrusha
authored
Moved remarks to member summary (#2378)
1 parent cbb87c5 commit c68ce3c

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

xml/System.Runtime.InteropServices/UnmanagedType.xml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -310,15 +310,7 @@
310310
</ReturnValue>
311311
<MemberValue>23</MemberValue>
312312
<Docs>
313-
<summary>Used for in-line, fixed-length character arrays that appear within a structure. The character type used with <see cref="F:System.Runtime.InteropServices.UnmanagedType.ByValTStr" /> is determined by the <see cref="T:System.Runtime.InteropServices.CharSet" /> argument of the <see cref="T:System.Runtime.InteropServices.StructLayoutAttribute" /> attribute applied to the containing structure. Always use the <see cref="F:System.Runtime.InteropServices.MarshalAsAttribute.SizeConst" /> field to indicate the size of the array.</summary>
314-
<remarks>
315-
<format type="text/markdown"><![CDATA[
316-
317-
## Remarks
318-
.NET Framework ByValTStr types behave like C-style, fixed-size strings inside a structure (for example, `char s[5]`). The behavior in managed code differs from the Microsoft Visual Basic 6.0 behavior, which is not null terminated (for example, `MyString As String * 5`).
319-
320-
]]></format>
321-
</remarks>
313+
<summary>Used for in-line, fixed-length character arrays that appear within a structure. <see langword="ByValTStr" /> types behave like C-style, fixed-size strings inside a structure (for example, <c>char s[5]</c>). The character type used with <see langword="ByValTStr" /> is determined by the <see cref="T:System.Runtime.InteropServices.CharSet" /> argument of the <see cref="T:System.Runtime.InteropServices.StructLayoutAttribute" /> attribute applied to the containing structure. Always use the <see cref="F:System.Runtime.InteropServices.MarshalAsAttribute.SizeConst" /> field to indicate the size of the array.</summary>
322314
</Docs>
323315
</Member>
324316
<Member MemberName="Currency">
@@ -1060,15 +1052,7 @@
10601052
</ReturnValue>
10611053
<MemberValue>21</MemberValue>
10621054
<Docs>
1063-
<summary>A 2-byte, null-terminated Unicode character string.</summary>
1064-
<remarks>
1065-
<format type="text/markdown"><![CDATA[
1066-
1067-
## Remarks
1068-
Note that you cannot use the LPWStr value with an unmanaged string unless the string was created by using the unmanaged `CoTaskMemAlloc` function.
1069-
1070-
]]></format>
1071-
</remarks>
1055+
<summary>A 2-byte, null-terminated Unicode character string. You cannot use the <see langword="LPWStr" /> value with an unmanaged string unless the string was created by using the unmanaged <see langword="CoTaskMemAlloc" /> function. </summary>
10721056
</Docs>
10731057
</Member>
10741058
<Member MemberName="R4">

0 commit comments

Comments
 (0)