356 references to KeepAlive
HttpStress (1)
Program.cs (1)
626GC.KeepAlive(listener);
IdeCoreBenchmarks (1)
NavigateToBenchmarks.cs (1)
135GC.KeepAlive(roots);
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (2)
14GC.KeepAlive(test); 17GC.KeepAlive(/*MMProperty*/frame.Component);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
1529builder.AddAttribute(1, "onsubmit", () => { GC.KeepAlive(new object()); });
Microsoft.AspNetCore.Components.Performance (1)
RenderTreeDiffBuilderBenchmark.cs (1)
83GC.KeepAlive(diff);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (2)
14GC.KeepAlive(test); 17GC.KeepAlive(/*MMProperty*/frame.Component);
Microsoft.AspNetCore.Components.Tests (1)
RendererTest.cs (1)
5916GC.KeepAlive(unrelatedThingToMakeTheLambdaCapture);
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHost.cs (1)
51GC.KeepAlive(typeof(JSInteropMethods));
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\RootComponentMappingTest.cs (1)
20GC.KeepAlive(mapping);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
597GC.KeepAlive(expectedParameterValue);
Microsoft.AspNetCore.Http.Microbenchmarks (14)
RouteValueDictionaryBenchmark.cs (14)
232GC.KeepAlive(kvp.Value); 243GC.KeepAlive(kvp.Value); 252GC.KeepAlive(dictionary["action"]); 253GC.KeepAlive(dictionary["controller"]); 254GC.KeepAlive(dictionary["id"]); 262GC.KeepAlive(dictionary["action"]); 263GC.KeepAlive(dictionary["controller"]); 264GC.KeepAlive(dictionary["id"]); 305GC.KeepAlive(action); 306GC.KeepAlive(controller); 307GC.KeepAlive(id); 318GC.KeepAlive(action); 319GC.KeepAlive(controller); 320GC.KeepAlive(id);
Microsoft.AspNetCore.Routing.Microbenchmarks (15)
EndpointMetadataCollectionBenchmark.cs (15)
49GC.KeepAlive(_items[i] as IMetadata1); 54GC.KeepAlive(_items[i] as IMetadata2); 59GC.KeepAlive(_items[i] as IMetadata3); 64GC.KeepAlive(_items[i] as IMetadata4); 69GC.KeepAlive(_items[i] as IMetadata5); 76GC.KeepAlive(_collection.GetMetadata<IMetadata1>()); 77GC.KeepAlive(_collection.GetMetadata<IMetadata2>()); 78GC.KeepAlive(_collection.GetMetadata<IMetadata3>()); 79GC.KeepAlive(_collection.GetMetadata<IMetadata4>()); 80GC.KeepAlive(_collection.GetMetadata<IMetadata5>()); 88GC.KeepAlive(item); 93GC.KeepAlive(item); 98GC.KeepAlive(item); 103GC.KeepAlive(item); 108GC.KeepAlive(item);
Microsoft.AspNetCore.Routing.Tests (4)
DataSourceDependentCacheTest.cs (1)
45GC.KeepAlive(cache.Value);
Matching\BarebonesMatcherConformanceTest.cs (1)
34GC.KeepAlive(new object[] { template, path, keys, values });
Matching\FullFeaturedMatcherConformanceTest.cs (2)
190GC.KeepAlive(keys); 191GC.KeepAlive(values);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
474public void OnInvoked() => GC.KeepAlive(_handle.Wrapper);
Microsoft.CodeAnalysis (1)
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
367GC.KeepAlive(assemblyMetadata);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (61)
Symbols\Metadata\PE\NoPia.cs (40)
340GC.KeepAlive(localTypes1_1); 341GC.KeepAlive(localTypes2_1); 342GC.KeepAlive(pia1_1); 343GC.KeepAlive(localTypes1_9); 344GC.KeepAlive(library1_9); 677GC.KeepAlive(localTypes1_1); 678GC.KeepAlive(localTypes2_1); 679GC.KeepAlive(pia1_1); 680GC.KeepAlive(localTypes1_9); 681GC.KeepAlive(library1_9); 701GC.KeepAlive(tc1); 702GC.KeepAlive(tc2); 860GC.KeepAlive(tc1); 861GC.KeepAlive(tc2); 862GC.KeepAlive(tc3); 863GC.KeepAlive(tc4); 864GC.KeepAlive(tc5); 865GC.KeepAlive(tc6); 866GC.KeepAlive(tc7); 938GC.KeepAlive(tc1); 939GC.KeepAlive(tc2); 940GC.KeepAlive(tc3); 941GC.KeepAlive(tc4); 942GC.KeepAlive(tc5); 943GC.KeepAlive(tc6); 944GC.KeepAlive(tc7); 1227GC.KeepAlive(tc1); 1228GC.KeepAlive(tc2); 1229GC.KeepAlive(tc3); 1230GC.KeepAlive(tc4); 1231GC.KeepAlive(tc5); 1232GC.KeepAlive(tc6); 1233GC.KeepAlive(tc7); 1343GC.KeepAlive(tc1); 1344GC.KeepAlive(tc2); 1345GC.KeepAlive(tc3); 1346GC.KeepAlive(tc4); 1347GC.KeepAlive(tc5); 1348GC.KeepAlive(tc6); 1349GC.KeepAlive(tc7);
Symbols\Retargeting\NoPia.cs (21)
639GC.KeepAlive(localTypes1_1); 640GC.KeepAlive(localTypes2_1); 641GC.KeepAlive(pia1_1); 642GC.KeepAlive(localTypes1_9); 643GC.KeepAlive(library1_9); 940GC.KeepAlive(localTypes1_1); 941GC.KeepAlive(localTypes2_1); 942GC.KeepAlive(pia1_1); 943GC.KeepAlive(localTypes1_9); 944GC.KeepAlive(library1_9); 1244GC.KeepAlive(localTypes1_1); 1245GC.KeepAlive(localTypes2_1); 1246GC.KeepAlive(pia1_1); 1247GC.KeepAlive(localTypes1_9); 1248GC.KeepAlive(library1_9); 1272GC.KeepAlive(tc1); 1273GC.KeepAlive(tc2); 1298GC.KeepAlive(tc1); 1299GC.KeepAlive(tc2); 1328GC.KeepAlive(tc1); 1329GC.KeepAlive(tc2);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Preview\PreviewWorkspaceTests.cs (1)
160GC.KeepAlive(exportProvider);
Microsoft.CodeAnalysis.Features (3)
Completion\CompletionService.cs (2)
225GC.KeepAlive(semanticModel); 261GC.KeepAlive(semanticModel);
Completion\CompletionService_GetCompletions.cs (1)
119GC.KeepAlive(semanticModel);
Microsoft.CodeAnalysis.UnitTests (6)
Collections\List\ICollection.Generic.Tests.cs (1)
366GC.KeepAlive(collection);
InternalUtilities\WeakListTests.cs (5)
102GC.KeepAlive(b.GetReference()); 204GC.KeepAlive(b); 244GC.KeepAlive(b); 284GC.KeepAlive(b); 316GC.KeepAlive(b);
Microsoft.CodeAnalysis.Workspaces (9)
FindSymbols\ReferenceLocationExtensions.cs (1)
41GC.KeepAlive(compilation);
Workspace\Solution\DocumentState.cs (8)
691GC.KeepAlive(newTreeContent); 692GC.KeepAlive(newTextContent); 693GC.KeepAlive(oldTreeContent); 694GC.KeepAlive(oldTextContent); 696GC.KeepAlive(newTree); 697GC.KeepAlive(newText); 698GC.KeepAlive(oldTree); 699GC.KeepAlive(oldText);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
WorkspaceTests\AdhocWorkspaceTests.cs (1)
593GC.KeepAlive(exportProvider);
Microsoft.VisualStudio.LanguageServices (1)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (1)
94GC.KeepAlive(enabledExtensions);
PresentationCore (19)
MS\Internal\Text\TextInterface\Factory.cs (3)
158GC.KeepAlive(this); 223GC.KeepAlive(this); 317GC.KeepAlive(this);
MS\Internal\TextFormatting\FullTextBreakpoint.cs (2)
103GC.KeepAlive(context); 200GC.KeepAlive(this);
MS\Internal\TextFormatting\FullTextLine.cs (3)
149GC.KeepAlive(this); 312GC.KeepAlive(context); 631GC.KeepAlive(context);
MS\Internal\TextFormatting\TextPenaltyModule.cs (2)
63GC.KeepAlive(this); 86GC.KeepAlive(this);
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (1)
261GC.KeepAlive(this);
System\Windows\Input\Stylus\Wisp\PenContext.cs (1)
41GC.KeepAlive(this);
System\Windows\Input\Stylus\Wisp\PenThread.cs (1)
46GC.KeepAlive(this);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (2)
501GC.KeepAlive(this); 1289GC.KeepAlive(this);
System\Windows\Media\textformatting\TextFormatterContext.cs (1)
131GC.KeepAlive(contextInfo);
System\Windows\Media\textformatting\TextLineBreak.cs (1)
98GC.KeepAlive(this);
System\Windows\Media\textformatting\TextParagraphCache.cs (2)
89GC.KeepAlive(context); 154GC.KeepAlive(this);
PresentationFramework (7)
MS\Internal\Data\PropertyPathWorker.cs (1)
677GC.KeepAlive(target); // keep target alive during changes (bug 956831)
MS\Internal\Data\XmlBindingWorker.cs (1)
500GC.KeepAlive(target); // keep target alive during process xml change (bug 1494812)
System\Windows\Controls\ListBox.cs (1)
901GC.KeepAlive(anchorInfo);
System\Windows\Data\BindingExpression.cs (4)
556GC.KeepAlive(target); // keep target alive during activation (bug 956831) 844GC.KeepAlive(target); // keep target alive during activation (bug 956831) 1033GC.KeepAlive(target); // keep target alive during activation (bug 956831) 1517GC.KeepAlive(target); // keep target alive during transfer (bug 956831)
System.Data.Odbc (2)
src\libraries\Common\src\System\Runtime\InteropServices\HandleRefMarshaller.cs (1)
22public void OnInvoked() => GC.KeepAlive(_handle.Wrapper);
System\Data\Odbc\OdbcConnection.cs (1)
891GC.KeepAlive(this);
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\ActivitySource.cs (1)
69GC.KeepAlive(DiagnosticSourceEventSource.Log);
System\Diagnostics\DiagnosticListener.cs (2)
147GC.KeepAlive(DiagnosticSourceEventSource.Log); 326GC.KeepAlive("");
System\Diagnostics\Metrics\Meter.cs (1)
101GC.KeepAlive(MetricsEventSource.Log);
System.Net.Security (4)
System\Net\Security\SslStreamCertificateContext.Linux.cs (4)
346GC.KeepAlive(TargetCertificate); 347GC.KeepAlive(_privateIntermediateCertificates); 348GC.KeepAlive(_rootCertificate); 349GC.KeepAlive(caCert);
System.Private.CoreLib (125)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (4)
557GC.KeepAlive(this); // Ensure we don't get finalized while accessing DependentHandle 563GC.KeepAlive(this); // Ensure we don't get finalized while accessing DependentHandle 575GC.KeepAlive(this); // Ensure we don't get finalized while accessing DependentHandle 783GC.KeepAlive(this); // ensure we don't get finalized while accessing DependentHandles.
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
70GC.KeepAlive(errorWriter);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5377GC.KeepAlive(tasks);
src\libraries\System.Private.CoreLib\src\System\WeakReference.cs (5)
132GC.KeepAlive(this); 168GC.KeepAlive(this); 178GC.KeepAlive(this); 200GC.KeepAlive(this); 209GC.KeepAlive(this);
src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (4)
114GC.KeepAlive(this); 123GC.KeepAlive(this); 147GC.KeepAlive(this); 157GC.KeepAlive(this);
src\System\Array.CoreCLR.cs (2)
492GC.KeepAlive(this); // Keep the method table alive 598GC.KeepAlive(this); // Keep the method table alive
src\System\Delegate.CoreCLR.cs (1)
427GC.KeepAlive(method);
src\System\Enum.CoreCLR.cs (3)
22GC.KeepAlive(rt); 30GC.KeepAlive(this); 72GC.KeepAlive(enumType);
src\System\GC.CoreCLR.cs (1)
297KeepAlive(wo);
src\System\IO\Stream.CoreCLR.cs (2)
21GC.KeepAlive(this); 35GC.KeepAlive(this);
src\System\Object.CoreCLR.cs (1)
18GC.KeepAlive(this);
src\System\Reflection\Emit\DynamicMethod.CoreCLR.cs (2)
55GC.KeepAlive(methodHandle); 142GC.KeepAlive(this);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (2)
133GC.KeepAlive(method); 143GC.KeepAlive(method);
src\System\Reflection\RuntimeAssembly.cs (1)
594GC.KeepAlive(this); // We directly pass the native handle above - make sure this object stays alive for the call
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
218GC.KeepAlive(module);
src\System\Reflection\RuntimeParameterInfo.cs (2)
247GC.KeepAlive(this); 348GC.KeepAlive(this);
src\System\Reflection\RuntimePropertyInfo.cs (3)
51GC.KeepAlive(module); 72GC.KeepAlive(this); 215GC.KeepAlive(this);
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (6)
49GC.KeepAlive(fldInfo); 121GC.KeepAlive(fldInfo); 216GC.KeepAlive(instantiation); 217GC.KeepAlive(methodInfo); 402GC.KeepAlive(obj); // Keep MethodTable alive 428GC.KeepAlive(array); // Keep MethodTable alive
src\System\Runtime\CompilerServices\VirtualDispatchHelpers.cs (1)
70GC.KeepAlive(obj);
src\System\Runtime\DependentHandle.cs (1)
120/// target in a local and calling <see cref="GC.KeepAlive(object)"/> on it after <see cref="Dependent"/> is accessed.
src\System\Runtime\InteropServices\Marshal.CoreCLR.cs (3)
54GC.KeepAlive(rtField); 223GC.KeepAlive(rmi); 321GC.KeepAlive(rt);
src\System\RuntimeHandles.cs (46)
230GC.KeepAlive(genericParameter); 259GC.KeepAlive(genericParameter1); 260GC.KeepAlive(genericParameter2); 283GC.KeepAlive(type); 295GC.KeepAlive(type); 426GC.KeepAlive(type); 533GC.KeepAlive(type); 553GC.KeepAlive(type); 665GC.KeepAlive(type); 666GC.KeepAlive(target); 699GC.KeepAlive(type); 744GC.KeepAlive(inst); 757GC.KeepAlive(inst); 843GC.KeepAlive(methodContext); 1027GC.KeepAlive(m_value); 1047GC.KeepAlive(method); 1062GC.KeepAlive(methodInfo); 1079GC.KeepAlive(method); 1091GC.KeepAlive(method); 1103GC.KeepAlive(method); 1113GC.KeepAlive(method); 1180GC.KeepAlive(destNullableType); // The obj instance will keep the type alive. 1196GC.KeepAlive(method); 1211GC.KeepAlive(method); 1221GC.KeepAlive(method); 1256GC.KeepAlive(method); 1271GC.KeepAlive(method); 1290GC.KeepAlive(method); 1311GC.KeepAlive(method); 1462GC.KeepAlive(field); 1500GC.KeepAlive(field); 1522GC.KeepAlive(field); 1542GC.KeepAlive(field); 1564GC.KeepAlive(field); 1585GC.KeepAlive(field); 1606GC.KeepAlive(field); 1625GC.KeepAlive(field); 1784GC.KeepAlive(typeInstantiationContext); 1785GC.KeepAlive(methodInstantiationContext); 1825GC.KeepAlive(typeInstantiationContext); 1826GC.KeepAlive(methodInstantiationContext); 1890GC.KeepAlive(typeInstantiationContext); 1891GC.KeepAlive(methodInstantiationContext); 2002GC.KeepAlive(methodHandle); 2009GC.KeepAlive(methodHandle); 2016GC.KeepAlive(fieldHandle);
src\System\RuntimeType.ActivatorCache.cs (1)
136GC.KeepAlive(rt);
src\System\RuntimeType.BoxCache.cs (1)
89GC.KeepAlive(rt);
src\System\RuntimeType.CoreCLR.cs (23)
969GC.KeepAlive(module); 1212GC.KeepAlive(module); 1394GC.KeepAlive(module); 1567GC.KeepAlive(module); 1786GC.KeepAlive(this); 1804GC.KeepAlive(methodHandle); 1936GC.KeepAlive(methodInstantiation); 1990GC.KeepAlive(field); 3314GC.KeepAlive(this); 3397GC.KeepAlive(this); // Ensure TypeHandle remains alive. 3427GC.KeepAlive(this); 3439GC.KeepAlive(this); 3455GC.KeepAlive(this); 3469GC.KeepAlive(this); 3481GC.KeepAlive(this); 3493GC.KeepAlive(this); 3503GC.KeepAlive(this); 3514GC.KeepAlive(this); 3526GC.KeepAlive(this); 3538GC.KeepAlive(this); 3560GC.KeepAlive(module); 3691GC.KeepAlive(this); 3699GC.KeepAlive(this);
src\System\RuntimeType.CreateUninitializedCache.CoreCLR.cs (1)
51GC.KeepAlive(rt);
src\System\StubHelpers.cs (1)
1282GC.KeepAlive(m_obj);
src\System\Threading\Thread.CoreCLR.cs (5)
183GC.KeepAlive(this); 206GC.KeepAlive(this); 217GC.KeepAlive(this); 292GC.KeepAlive(this); 391GC.KeepAlive(this);
System.Private.Windows.Core (26)
Windows\Win32\Foundation\HandleRef.cs (1)
15/// <see cref="GC.KeepAlive(object?)"/> on the <see cref="Wrapper"/> <see langword="object"/>.
Windows\Win32\PInvoke.CallWindowProc.cs (1)
18GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvoke.GetWindowRect.cs (1)
12GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvoke.GetWindowText.cs (1)
65GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvoke.GetWindowTextLength.cs (1)
12GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvoke.MapWindowPoints.cs (4)
18GC.KeepAlive(hWndFrom.Wrapper); 19GC.KeepAlive(hWndTo.Wrapper); 32GC.KeepAlive(hWndFrom.Wrapper); 33GC.KeepAlive(hWndTo.Wrapper);
Windows\Win32\PInvokeCore.BitBlt.cs (2)
30GC.KeepAlive(hdc.Wrapper); 56GC.KeepAlive(hdcSrc.Wrapper);
Windows\Win32\PInvokeCore.CopyImage.cs (2)
13GC.KeepAlive(hImage.Wrapper); 22GC.KeepAlive(hImage.Wrapper);
Windows\Win32\PInvokeCore.DrawIcon.cs (1)
16GC.KeepAlive(hIcon.Wrapper);
Windows\Win32\PInvokeCore.DrawIconEx.cs (1)
26GC.KeepAlive(hIcon.Wrapper);
Windows\Win32\PInvokeCore.EnumChildWindows.cs (1)
27GC.KeepAlive(hwndParent.Wrapper);
Windows\Win32\PInvokeCore.GetClientRect.cs (1)
13GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.GetIconInfo.cs (1)
13GC.KeepAlive(icon.Wrapper);
Windows\Win32\PInvokeCore.GetWindowLong.cs (1)
33GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.PeekMessage.cs (1)
18GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.PostMessage.cs (1)
17GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.SendMessage.cs (2)
16GC.KeepAlive(hWnd.Wrapper); 28GC.KeepAlive(wParam.Wrapper);
Windows\Win32\PInvokeCore.SetWindowLong.cs (3)
22GC.KeepAlive(hWnd.Wrapper); 31GC.KeepAlive(newValue.Wrapper); 40GC.KeepAlive(dwNewLong);
System.Private.Windows.GdiPlus (1)
System\Drawing\IIconExtensions.cs (1)
29GC.KeepAlive(icon);
System.Reflection.Metadata (1)
System\Reflection\Internal\MemoryBlocks\AbstractMemoryBlock.cs (1)
38GC.KeepAlive(this);
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs (1)
68GC.KeepAlive(cert); // ensure cert's safe handle isn't finalized while raw handle is in use
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\PkcsHelpers.cs (1)
229GC.KeepAlive(originalCert);
System.Windows.Forms (25)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2772GC.KeepAlive(this);
System\Windows\Forms\ActiveX\AxHost.cs (1)
3219GC.KeepAlive(this);
System\Windows\Forms\Application.cs (1)
1143GC.KeepAlive(handle);
System\Windows\Forms\Control.cs (2)
9285GC.KeepAlive(this); 12587GC.KeepAlive(this);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
3231GC.KeepAlive(this); 3371GC.KeepAlive(this);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5734GC.KeepAlive(this);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1512GC.KeepAlive(this);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
4915GC.KeepAlive(this);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
704GC.KeepAlive(ParentInternal);
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1632GC.KeepAlive(toolTip);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3580GC.KeepAlive(ItemHdcInfo);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
106GC.KeepAlive(Parent);
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
246GC.KeepAlive(ownerHwnd.Wrapper);
System\Windows\Forms\Form.cs (5)
2954GC.KeepAlive(this); 3436GC.KeepAlive(_ctlClient); 3665GC.KeepAlive(ownerHandle.Wrapper); 4913GC.KeepAlive(this); 5718GC.KeepAlive(ownerHwnd.Wrapper);
System\Windows\Forms\Help\Help.cs (1)
218GC.KeepAlive(handle.Wrapper);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1480GC.KeepAlive(this);
System\Windows\Forms\MDI\MDIClient.cs (1)
272GC.KeepAlive(child);
System\Windows\Forms\StringSource.cs (1)
53GC.KeepAlive(edit.Wrapper);
System\Windows\Forms\Timer.cs (1)
315GC.KeepAlive(this);
System.Windows.Forms.Primitives (1)
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (1)
48GC.KeepAlive(_handle);
UIAutomationClient (7)
MS\Internal\Automation\UiaCoreApi.cs (7)
367GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 379GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 391GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 433GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 450GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 451GC.KeepAlive(findCondition); 591GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call
VBCSCompiler.UnitTests (2)
CompilerServerTests.cs (2)
845GC.KeepAlive(rootDirectory); 959GC.KeepAlive(rootDirectory);
WinFormsControlsTest (1)
ScalingBeforeChanges.cs (1)
52GC.KeepAlive(this);