8 overrides of IsCollectible
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
186
public override bool
IsCollectible
=> _unmodifiedType.IsCollectible;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
158
public override bool
IsCollectible
=> typeImpl.IsCollectible;
System\Reflection\Runtime\General\ThunkedApis.cs (5)
99
public sealed override bool
IsCollectible
=> false;
111
public sealed override bool
IsCollectible
=> false;
127
public sealed override bool
IsCollectible
=> false;
135
public sealed override bool
IsCollectible
=> false;
163
public sealed override bool
IsCollectible
=> false;
System\RuntimeType.NativeAot.cs (1)
671
public override bool
IsCollectible
=> false;
19 references to IsCollectible
System.ComponentModel.TypeConverter (8)
System\ComponentModel\CollectibleKeyConcurrentHashtable.cs (4)
34
if (!key.
IsCollectible
)
47
return !key.
IsCollectible
? _defaultTable.ContainsKey(key) : _collectibleTable.TryGetValue(key, out _);
52
if (!key.
IsCollectible
)
67
return !key.
IsCollectible
System\ComponentModel\CollectibleKeyHashtable.cs (4)
13
/// For keys where <see cref="MemberInfo.
IsCollectible
"/> is <c>false</c>, a standard <see cref="Hashtable"/> is used.
14
/// For keys where <see cref="MemberInfo.
IsCollectible
"/> is <c>true</c>, a <see cref="ConditionalWeakTable{TKey, TValue}"/> is used.
27
return !key.
IsCollectible
? _defaultTable[key] : (_collectibleTable.TryGetValue(key, out object? value) ? value : null);
32
if (!key.
IsCollectible
)
System.Linq.Expressions (5)
System\Dynamic\Utils\TypeExtensions.cs (1)
74
if (!method.
IsCollectible
)
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
77
if (!lookingUp.
IsCollectible
)
System\Linq\Expressions\LambdaExpression.cs (2)
633
if (delegateType.
IsCollectible
)
930
if (!delegateType.
IsCollectible
)
System\Runtime\CompilerServices\CallSite.cs (1)
104
if (delegateType.
IsCollectible
)
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
186
public override bool IsCollectible => _unmodifiedType.
IsCollectible
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
158
public override bool IsCollectible => typeImpl.
IsCollectible
;
System.Private.Xml (3)
System\Xml\Serialization\Compilation.cs (2)
440
if (!t.
IsCollectible
)
480
if (t?.
IsCollectible
== true)
System\Xml\Serialization\ContextAwareTables.cs (1)
38
if (!t.
IsCollectible
&& !(alc?.IsCollectible ?? false))
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (1)
70
AssemblyBuilder assembly = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("ComImportForwarder"), runtimeType.
IsCollectible
? AssemblyBuilderAccess.RunAndCollect : AssemblyBuilderAccess.Run);