366 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)
1666builder.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)
368GC.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 (4)
Completion\CompletionService.cs (2)
225GC.KeepAlive(semanticModel); 261GC.KeepAlive(semanticModel);
Completion\CompletionService_GetCompletions.cs (1)
119GC.KeepAlive(semanticModel);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
398GC.KeepAlive(compilation);
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)
693GC.KeepAlive(newTreeContent); 694GC.KeepAlive(newTextContent); 695GC.KeepAlive(oldTreeContent); 696GC.KeepAlive(oldTextContent); 698GC.KeepAlive(newTree); 699GC.KeepAlive(newText); 700GC.KeepAlive(oldTree); 701GC.KeepAlive(oldText);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
WorkspaceTests\AdhocWorkspaceTests.cs (1)
593GC.KeepAlive(exportProvider);
Microsoft.VisualStudio.LanguageServices (1)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.cs (1)
101GC.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)
102GC.KeepAlive(context); 201GC.KeepAlive(this);
MS\Internal\TextFormatting\FullTextLine.cs (3)
148GC.KeepAlive(this); 313GC.KeepAlive(context); 632GC.KeepAlive(context);
MS\Internal\TextFormatting\TextPenaltyModule.cs (2)
62GC.KeepAlive(this); 85GC.KeepAlive(this);
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (1)
260GC.KeepAlive(this);
System\Windows\Input\Stylus\Wisp\PenContext.cs (1)
40GC.KeepAlive(this);
System\Windows\Input\Stylus\Wisp\PenThread.cs (1)
42GC.KeepAlive(this);
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (2)
502GC.KeepAlive(this); 1291GC.KeepAlive(this);
System\Windows\Media\textformatting\TextFormatterContext.cs (1)
130GC.KeepAlive(contextInfo);
System\Windows\Media\textformatting\TextLineBreak.cs (1)
97GC.KeepAlive(this);
System\Windows\Media\textformatting\TextParagraphCache.cs (2)
88GC.KeepAlive(context); 153GC.KeepAlive(this);
PresentationFramework (7)
MS\Internal\Data\PropertyPathWorker.cs (1)
668GC.KeepAlive(target); // keep target alive during changes (bug 956831)
MS\Internal\Data\XmlBindingWorker.cs (1)
501GC.KeepAlive(target); // keep target alive during process xml change (bug 1494812)
System\Windows\Controls\ListBox.cs (1)
898GC.KeepAlive(anchorInfo);
System\Windows\Data\BindingExpression.cs (4)
552GC.KeepAlive(target); // keep target alive during activation (bug 956831) 840GC.KeepAlive(target); // keep target alive during activation (bug 956831) 1029GC.KeepAlive(target); // keep target alive during activation (bug 956831) 1512GC.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)
75GC.KeepAlive(DiagnosticSourceEventSource.Log);
System\Diagnostics\DiagnosticListener.cs (2)
147GC.KeepAlive(DiagnosticSourceEventSource.Log); 326GC.KeepAlive("");
System\Diagnostics\Metrics\Meter.cs (1)
99GC.KeepAlive(MetricsEventSource.Log);
System.Net.Security (4)
System\Net\Security\SslStreamCertificateContext.Linux.cs (4)
356GC.KeepAlive(TargetCertificate); 357GC.KeepAlive(_privateIntermediateCertificates); 358GC.KeepAlive(_rootCertificate); 359GC.KeepAlive(caCert);
System.Private.CoreLib (130)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (4)
663GC.KeepAlive(this); // Ensure we don't get finalized while accessing DependentHandle 669GC.KeepAlive(this); // Ensure we don't get finalized while accessing DependentHandle 681GC.KeepAlive(this); // Ensure we don't get finalized while accessing DependentHandle 891GC.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)
5372GC.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)
506GC.KeepAlive(this); // Keep the method table alive 612GC.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)
298KeepAlive(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)
591GC.KeepAlive(this); // We directly pass the native handle above - make sure this object stays alive for the call
src\System\Reflection\RuntimeCustomAttributeData.cs (7)
218GC.KeepAlive(module); 1464GC.KeepAlive(decoratedModule); 1610GC.KeepAlive(decoratedModule); 1708GC.KeepAlive(ctorWithParameters); 2187GC.KeepAlive(module); 2259GC.KeepAlive(module); 2288GC.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 (45)
242GC.KeepAlive(genericParameter); 271GC.KeepAlive(genericParameter1); 272GC.KeepAlive(genericParameter2); 295GC.KeepAlive(type); 447GC.KeepAlive(type); 554GC.KeepAlive(type); 574GC.KeepAlive(type); 686GC.KeepAlive(type); 687GC.KeepAlive(target); 720GC.KeepAlive(type); 765GC.KeepAlive(inst); 778GC.KeepAlive(inst); 864GC.KeepAlive(methodContext); 1052GC.KeepAlive(m_value); 1072GC.KeepAlive(method); 1087GC.KeepAlive(methodInfo); 1104GC.KeepAlive(method); 1116GC.KeepAlive(method); 1128GC.KeepAlive(method); 1138GC.KeepAlive(method); 1205GC.KeepAlive(destNullableType); // The obj instance will keep the type alive. 1221GC.KeepAlive(method); 1236GC.KeepAlive(method); 1246GC.KeepAlive(method); 1281GC.KeepAlive(method); 1296GC.KeepAlive(method); 1315GC.KeepAlive(method); 1336GC.KeepAlive(method); 1497GC.KeepAlive(field); 1535GC.KeepAlive(field); 1557GC.KeepAlive(field); 1577GC.KeepAlive(field); 1599GC.KeepAlive(field); 1620GC.KeepAlive(field); 1641GC.KeepAlive(field); 1660GC.KeepAlive(field); 1847GC.KeepAlive(typeInstantiationContext); 1848GC.KeepAlive(methodInstantiationContext); 1888GC.KeepAlive(typeInstantiationContext); 1889GC.KeepAlive(methodInstantiationContext); 1953GC.KeepAlive(typeInstantiationContext); 1954GC.KeepAlive(methodInstantiationContext); 2065GC.KeepAlive(methodHandle); 2072GC.KeepAlive(methodHandle); 2079GC.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)
958GC.KeepAlive(module); 1201GC.KeepAlive(module); 1375GC.KeepAlive(module); 1548GC.KeepAlive(module); 1767GC.KeepAlive(this); 1785GC.KeepAlive(methodHandle); 1917GC.KeepAlive(methodInstantiation); 1971GC.KeepAlive(field); 3295GC.KeepAlive(this); 3379GC.KeepAlive(this); // Ensure TypeHandle remains alive. 3409GC.KeepAlive(this); 3421GC.KeepAlive(this); 3437GC.KeepAlive(this); 3451GC.KeepAlive(this); 3463GC.KeepAlive(this); 3475GC.KeepAlive(this); 3485GC.KeepAlive(this); 3496GC.KeepAlive(this); 3508GC.KeepAlive(this); 3520GC.KeepAlive(this); 3542GC.KeepAlive(module); 3673GC.KeepAlive(this); 3681GC.KeepAlive(this);
src\System\RuntimeType.CreateUninitializedCache.CoreCLR.cs (1)
51GC.KeepAlive(rt);
src\System\StubHelpers.cs (1)
1283GC.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 (30)
Windows\Win32\Foundation\HandleRef.cs (1)
15/// <see cref="GC.KeepAlive(object?)"/> on the <see cref="Wrapper"/> <see langword="object"/>.
Windows\Win32\PInvokeCore.BitBlt.cs (2)
30GC.KeepAlive(hdc.Wrapper); 56GC.KeepAlive(hdcSrc.Wrapper);
Windows\Win32\PInvokeCore.CallWindowProc.cs (1)
18GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.CopyImage.cs (2)
13GC.KeepAlive(hImage.Wrapper); 22GC.KeepAlive(hImage.Wrapper);
Windows\Win32\PInvokeCore.DragAcceptFiles.cs (1)
12GC.KeepAlive(hWnd.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.GetWindowRect.cs (1)
12GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.GetWindowText.cs (1)
65GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.GetWindowTextLength.cs (1)
12GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.GetWindowThreadProcessId.cs (1)
15GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.MapWindowPoints.cs (4)
18GC.KeepAlive(hWndFrom.Wrapper); 19GC.KeepAlive(hWndTo.Wrapper); 32GC.KeepAlive(hWndFrom.Wrapper); 33GC.KeepAlive(hWndTo.Wrapper);
Windows\Win32\PInvokeCore.PeekMessage.cs (1)
18GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.PostMessage.cs (1)
17GC.KeepAlive(hWnd.Wrapper);
Windows\Win32\PInvokeCore.RegisterDragDrop.cs (1)
22GC.KeepAlive(hwnd.Wrapper);
Windows\Win32\PInvokeCore.RevokeDragDrop.cs (1)
12GC.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)
44GC.KeepAlive(this);
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\OpenSslExportProvider.cs (1)
101GC.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)
148GC.KeepAlive(originalCert);
System.Windows.Forms (25)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2771GC.KeepAlive(this);
System\Windows\Forms\ActiveX\AxHost.cs (1)
3219GC.KeepAlive(this);
System\Windows\Forms\Application.cs (1)
1138GC.KeepAlive(handle);
System\Windows\Forms\Control.cs (2)
9277GC.KeepAlive(this); 12573GC.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)
5731GC.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)
261GC.KeepAlive(ownerHwnd.Wrapper);
System\Windows\Forms\Form.cs (5)
2951GC.KeepAlive(this); 3433GC.KeepAlive(_ctlClient); 3662GC.KeepAlive(ownerHandle.Wrapper); 4910GC.KeepAlive(this); 5712GC.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)
363GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 375GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 387GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 429GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 446GC.KeepAlive(request._condition); // keep condition (and associated unmanaged memory) alive during call 447GC.KeepAlive(findCondition); 587GC.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);