Skip to content

Commit 3b3a576

Browse files
john-h-kmairaw
authored andcommitted
Fix GCHandle null typo (#2403)
`GCHandle handle = null` when `GCHandle` is a non-nullable value type is obviously illegal, in reality it is `= default`
1 parent 92ad5d7 commit 3b3a576

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Buffers/MemoryHandle.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ A `MemoryHandle` instance represents a handle to a pinned block of memory. It is
4343
</Docs>
4444
<Members>
4545
<Member MemberName=".ctor">
46-
<MemberSignature Language="C#" Value="public MemoryHandle (void* pointer, System.Runtime.InteropServices.GCHandle handle = null, System.Buffers.IPinnable pinnable = null);" />
46+
<MemberSignature Language="C#" Value="public MemoryHandle (void* pointer, System.Runtime.InteropServices.GCHandle handle = default, System.Buffers.IPinnable pinnable = null);" />
4747
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(void* pointer, valuetype System.Runtime.InteropServices.GCHandle handle, class System.Buffers.IPinnable pinnable) cil managed" />
4848
<MemberSignature Language="DocId" Value="M:System.Buffers.MemoryHandle.#ctor(System.Void*,System.Runtime.InteropServices.GCHandle,System.Buffers.IPinnable)" />
4949
<MemberSignature Language="F#" Value="new System.Buffers.MemoryHandle : nativeptr&lt;unit&gt; * System.Runtime.InteropServices.GCHandle * System.Buffers.IPinnable -&gt; System.Buffers.MemoryHandle" Usage="new System.Buffers.MemoryHandle (pointer, handle, pinnable)" />
@@ -141,4 +141,4 @@ A `MemoryHandle` instance represents a handle to a pinned block of memory. It is
141141
</Docs>
142142
</Member>
143143
</Members>
144-
</Type>
144+
</Type>

0 commit comments

Comments
 (0)