Skip to content

Commit 8e5ebea

Browse files
Merge pull request #10268 from xparadoxical/patch-1
Document `ref` return as required for field accessors in UnsafeAccessorAttribute
2 parents 3a0f9ae + 3f91840 commit 8e5ebea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Runtime.CompilerServices/UnsafeAccessorAttribute.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The first argument must be passed as `ref` for instance fields and methods on st
4444
4545
The value of the first argument is not used by the implementation for `static` fields and methods and can be `null`.
4646
47-
The return value for an accessor to a field can be `ref` if setting of the field is desired.
47+
The return value for an accessor to a field must be passed as `ref`.
4848
4949
Constructors can be accessed using <xref:System.Runtime.CompilerServices.UnsafeAccessorKind.Constructor> or <xref:System.Runtime.CompilerServices.UnsafeAccessorKind.Method>.
5050

0 commit comments

Comments
 (0)