10 references to IsCollectible
Microsoft.CodeAnalysis.UnitTests (1)
AnalyzerAssemblyLoaderTests.cs (1)
1702Assert.False(context.IsCollectible, "AnalyzerAssemblyLoader should not use collectible assembly load contexts.");
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (3)
102var thisHandle = GCHandle.Alloc(this, IsCollectible ? GCHandleType.WeakTrackResurrection : GCHandleType.Normal); 122Debug.Assert(IsCollectible); 462if (!IsCollectible)
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ContextAware.cs (2)
33if (alc == null || !alc.IsCollectible) 74if (alc == null || !alc.IsCollectible)
System.Private.Xml (3)
System\Xml\Serialization\Compilation.cs (2)
597if (typeALC == null || !typeALC.IsCollectible) 724if (alc != null && alc.IsCollectible)
System\Xml\Serialization\ContextAwareTables.cs (1)
38if (alc == null || !alc.IsCollectible)
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
133alc.IsCollectible ? AssemblyBuilderAccess.RunAndCollect : AssemblyBuilderAccess.Run;