Skip to content

Commit b02c542

Browse files
committed
Clarify MemberInfo.IsCollectible documentation
MemberInfo can reference multiple different assemblies (e.g. via generic instantiation or via reflected type). IsCollectible property must take all references into account. Related to dotnet/runtime#119869
1 parent 3d79db6 commit b02c542

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

xml/System.Reflection/MemberInfo.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,9 +721,9 @@
721721
<ReturnType>System.Boolean</ReturnType>
722722
</ReturnValue>
723723
<Docs>
724-
<summary>Gets a value that indicates whether this <see cref="T:System.Reflection.MemberInfo" /> object is part of an assembly held in a collectible <see cref="T:System.Runtime.Loader.AssemblyLoadContext" />.</summary>
724+
<summary>Gets a value that indicates whether this <see cref="T:System.Reflection.MemberInfo" /> object references one or more assemblies held in a collectible <see cref="T:System.Runtime.Loader.AssemblyLoadContext" />.</summary>
725725
<value>
726-
<see langword="true" /> if the <see cref="T:System.Reflection.MemberInfo" /> is part of an assembly held in a collectible assembly load context; otherwise, <see langword="false" />.</value>
726+
<see langword="true" /> if the <see cref="T:System.Reflection.MemberInfo" /> references one or more assemblies held in a collectible assembly load context; otherwise, <see langword="false" />.</value>
727727
<remarks>
728728
<format type="text/markdown"><![CDATA[
729729

xml/System.Reflection/TypeDelegator.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,9 +2285,9 @@ t.InvokeMember ("MyArray", BindingFlags.SetField, null, this, new
22852285
<ReturnType>System.Boolean</ReturnType>
22862286
</ReturnValue>
22872287
<Docs>
2288-
<summary>Gets the <see cref="P:System.Reflection.MemberInfo.IsCollectible" /> value for this object's <see cref="F:System.Reflection.TypeDelegator.typeImpl" />, which indicates whether this object, which is a <see cref="T:System.Reflection.MemberInfo" /> implementation, is part of an assembly held in a collectible <see cref="T:System.Runtime.Loader.AssemblyLoadContext" />.</summary>
2288+
<summary>Gets the <see cref="P:System.Reflection.MemberInfo.IsCollectible" /> value for this object's <see cref="F:System.Reflection.TypeDelegator.typeImpl" />, which indicates whether this object, which is a <see cref="T:System.Reflection.MemberInfo" /> implementation, references one or more assemblies held in a collectible <see cref="T:System.Runtime.Loader.AssemblyLoadContext" />.</summary>
22892289
<value>
2290-
<see langword="true" /> if this object, which is a <see cref="T:System.Reflection.MemberInfo" /> implementation, is part of an assembly held in a collectible assembly load context; otherwise, <see langword="false" />.</value>
2290+
<see langword="true" /> if this object, which is a <see cref="T:System.Reflection.MemberInfo" /> implementation, references one or more assemblies held in a collectible assembly load context; otherwise, <see langword="false" />.</value>
22912291
<remarks>To be added.</remarks>
22922292
</Docs>
22932293
</Member>

0 commit comments

Comments
 (0)