Skip to content

Commit 7f22040

Browse files
Update docs for APIs with scoped keyword (dotnet#8187)
1 parent 1a577b0 commit 7f22040

File tree

2 files changed

+77
-77
lines changed

2 files changed

+77
-77
lines changed

xml/System.Runtime.CompilerServices/Unsafe.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<Docs>
3232
<summary>Contains generic, low-level functionality for manipulating managed and unmanaged pointers.</summary>
3333
<remarks>
34-
<format type="text/markdown"><![CDATA[
34+
<format type="text/markdown"><![CDATA[
3535
3636
## Remarks
3737
@@ -135,7 +135,7 @@ Since the `Unsafe` APIs suppress typical type-safety validation, it is up to cal
135135
<summary>Adds an element offset to the given unmanaged pointer.</summary>
136136
<returns>A new unmanaged pointer that reflects the addition of the specified offset to the source pointer.</returns>
137137
<remarks>
138-
<format type="text/markdown"><![CDATA[
138+
<format type="text/markdown"><![CDATA[
139139
140140
## Remarks
141141
@@ -187,7 +187,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller
187187
<summary>Adds an offset to the given managed pointer.</summary>
188188
<returns>A new managed pointer that reflects the addition of the specified offset to the source pointer.</returns>
189189
<remarks>
190-
<format type="text/markdown"><![CDATA[
190+
<format type="text/markdown"><![CDATA[
191191
192192
## Remarks
193193
@@ -238,7 +238,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller
238238
<summary>Adds an element offset to the given managed pointer.</summary>
239239
<returns>A new managed pointer that reflects the addition of the specified offset to the source pointer.</returns>
240240
<remarks>
241-
<format type="text/markdown"><![CDATA[
241+
<format type="text/markdown"><![CDATA[
242242
243243
## Remarks
244244
@@ -298,7 +298,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller
298298
<summary>Adds an element offset to the given managed pointer.</summary>
299299
<returns>A new managed pointer that reflects the addition of the specified offset to the source pointer.</returns>
300300
<remarks>
301-
<format type="text/markdown"><![CDATA[
301+
<format type="text/markdown"><![CDATA[
302302
303303
## Remarks
304304
@@ -349,7 +349,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller
349349
<summary>Adds a byte offset to the given managed pointer.</summary>
350350
<returns>A new managed pointer that reflects the addition of the specified byte offset to the source pointer.</returns>
351351
<remarks>
352-
<format type="text/markdown"><![CDATA[
352+
<format type="text/markdown"><![CDATA[
353353
354354
## Remarks
355355
@@ -409,7 +409,7 @@ If `byteOffset` is a calculated value rather than a hardcoded literal, callers s
409409
<summary>Adds a byte offset to the given managed pointer.</summary>
410410
<returns>A new managed pointer that reflects the addition of the specified byte offset to the source pointer.</returns>
411411
<remarks>
412-
<format type="text/markdown"><![CDATA[
412+
<format type="text/markdown"><![CDATA[
413413
414414
## Remarks
415415
@@ -739,7 +739,7 @@ The caller is responsible for ensuring that the resulting managed pointer is pro
739739
</Docs>
740740
</Member>
741741
<Member MemberName="AsRef&lt;T&gt;">
742-
<MemberSignature Language="C#" Value="public static ref T AsRef&lt;T&gt; (in T source);" />
742+
<MemberSignature Language="C#" Value="public static ref T AsRef&lt;T&gt; (scoped in T source);" />
743743
<MemberSignature Language="ILAsm" Value=".method public static hidebysig !!T AsRef&lt;T&gt;([in]!!T&amp; source) cil managed" />
744744
<MemberSignature Language="DocId" Value="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(``0@)" />
745745
<MemberSignature Language="VB.NET" Value="Public Shared Function AsRef(Of T) (ByRef source As T) As T" />
@@ -1912,13 +1912,13 @@ public static MyUnionStruct MyMethod() {
19121912
value.SomeIntField = 42;
19131913
return value; // CS0165: Use of unassigned local variable 'value'
19141914
}
1915-
1915+
19161916
[StructLayout(LayoutKind.Explicit)]
19171917
public struct MyUnionStruct
19181918
{
19191919
[FieldOffset(0)]
19201920
public int SomeIntField;
1921-
1921+
19221922
[FieldOffset(0)]
19231923
public byte SomeByteField;
19241924
}
@@ -2002,7 +2002,7 @@ public static MyUnionStruct MyMethod() {
20022002
<summary>Subtracts an element offset from the given unmanaged pointer.</summary>
20032003
<returns>A new unmanaged pointer that reflects the subtraction of the specified offset from the source pointer.</returns>
20042004
<remarks>
2005-
<format type="text/markdown"><![CDATA[
2005+
<format type="text/markdown"><![CDATA[
20062006
20072007
## Remarks
20082008
@@ -2054,7 +2054,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller
20542054
<summary>Subtracts an offset from the given managed pointer.</summary>
20552055
<returns>A new managed pointer that reflects the subtraction of the specified offset from the source pointer.</returns>
20562056
<remarks>
2057-
<format type="text/markdown"><![CDATA[
2057+
<format type="text/markdown"><![CDATA[
20582058
20592059
## Remarks
20602060
@@ -2105,7 +2105,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller
21052105
<summary>Subtracts an element offset from the given managed pointer.</summary>
21062106
<returns>A new managed pointer that reflects the subtraction of the specified offset from the source pointer.</returns>
21072107
<remarks>
2108-
<format type="text/markdown"><![CDATA[
2108+
<format type="text/markdown"><![CDATA[
21092109
21102110
## Remarks
21112111
@@ -2165,7 +2165,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller
21652165
<summary>Subtracts an element offset from the given managed pointer.</summary>
21662166
<returns>A new managed pointer that reflects the subtraction of the specified offset from the source pointer.</returns>
21672167
<remarks>
2168-
<format type="text/markdown"><![CDATA[
2168+
<format type="text/markdown"><![CDATA[
21692169
21702170
## Remarks
21712171
@@ -2216,7 +2216,7 @@ If `elementOffset` is a calculated value rather than a hardcoded literal, caller
22162216
<summary>Subtracts a byte offset from the given managed pointer.</summary>
22172217
<returns>A new managed pointer that reflects the subtraction of the specified byte offset from the source pointer.</returns>
22182218
<remarks>
2219-
<format type="text/markdown"><![CDATA[
2219+
<format type="text/markdown"><![CDATA[
22202220
22212221
## Remarks
22222222
@@ -2276,7 +2276,7 @@ If `byteOffset` is a calculated value rather than a hardcoded literal, callers s
22762276
<summary>Subtracts a byte offset from the given managed pointer.</summary>
22772277
<returns>A new managed pointer that reflects the subtraction of the specified byte offset from the source pointer.</returns>
22782278
<remarks>
2279-
<format type="text/markdown"><![CDATA[
2279+
<format type="text/markdown"><![CDATA[
22802280
22812281
## Remarks
22822282

0 commit comments

Comments
 (0)