Skip to content

Commit 7f5bd5d

Browse files
authored
Fix incorrect remarks in GCHandle.Free (#9848)
Fixes #4909
1 parent 236f275 commit 7f5bd5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Runtime.InteropServices/GCHandle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@
705705
<format type="text/markdown"><![CDATA[
706706
707707
## Remarks
708-
Use this property when using <xref:System.Runtime.InteropServices.GCHandleType.Weak> handles to determine if the <xref:System.Runtime.InteropServices.GCHandle> is still available. When the garbage collector collects the object, the <xref:System.Runtime.InteropServices.GCHandleType.Weak> handle can still be resurrected in the finalizer. In that case, the handle is not allocated (it is lost when the garbage collector attempts to collect the object), even though the target object is valid.
708+
If <xref:System.Runtime.InteropServices.GCHandle.Free> was called on this <xref:System.Runtime.InteropServices.GCHandle>, or if this <xref:System.Runtime.InteropServices.GCHandle> is not initialized, the handle is not allocated and this property returns `false`.
709709
710710
]]></format>
711711
</remarks>

0 commit comments

Comments
 (0)