193 references to WeakReference
mscorlib (4)
system\diagnostics\eventing\eventsource.cs (1)
4443s_EventSources.Add(new WeakReference(newEventSource));
system\runtime\remoting\identityholder.cs (1)
645addMe = new WeakReference(idObj);
system\security\policy\evidence.cs (1)
142m_cloneOrigin = new WeakReference(evidence);
system\security\policy\hash.cs (1)
486m_rawData = new WeakReference(rawData);
PresentationCore (23)
Core\CSharp\MS\Internal\Automation\ElementProxy.cs (2)
64_peer = new WeakReference(peer); 293peer.ElementProxyWeakReference = new WeakReference(result);
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (1)
63elements.Add(new WeakReference(element));
Core\CSharp\System\Windows\Input\Command\CanExecuteChangedEventManager.cs (2)
374_source = new WeakReference(source); 375_originalHandler = new WeakReference(originalHandler);
Core\CSharp\System\Windows\Input\MouseDevice.cs (1)
1791_rawMouseOver = new WeakReference(rawMouseOver);
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
1190_manipulatingElement = new WeakReference(element);
Core\CSharp\System\Windows\Interop\D3DImage.cs (1)
106_listener = new WeakReference(this);
Core\CSharp\System\Windows\Interop\HwndSource.cs (2)
3089public WeakEventDispatcherShutdown(HwndSource source, Dispatcher that): base(source) 3126public WeakEventPreprocessMessage(HwndSource source, bool addToFront): base(source)
Core\CSharp\System\Windows\LayoutManager.cs (1)
1061internal ListItem() : base(null) {}
Core\CSharp\System\Windows\Media\Animation\Animatable.cs (1)
320reference = new WeakReference(this);
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (1)
134_dependencyObject = new WeakReference(d);
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
1456reference = new WeakReference(this);
Core\CSharp\System\Windows\Media\EventProxy.cs (1)
87target = new WeakReference(invokable);
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1692new WeakReference(this)
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (2)
130entry.decoders.Add(new WeakReference(decoder)); 142entry.decoders.Add(new WeakReference(decoder));
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (1)
829: base(cloned)
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (1)
299ImagingCache.AddToImageCache(uri, new WeakReference(this));
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
2041: base(bitmapSource)
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (1)
1429_nativeMedia = new WeakReference(nativeMedia);
Shared\MS\Internal\SafeSecurityHelper.cs (1)
465:base(target)
PresentationFramework (59)
src\Framework\MS\Internal\Data\CollectionViewGroupInternal.cs (1)
541_nameToGroupMap[nameKey] = new WeakReference(subgroup);
src\Framework\MS\Internal\Data\ObjectRef.cs (1)
647_element = new WeakReference(o);
src\Framework\MS\Internal\Data\ValueTable.cs (3)
106value = new WeakReference(value); 314_item = new WeakReference(item); 315_descriptor = new WeakReference(pd);
src\Framework\MS\Internal\Data\ViewManager.cs (6)
155_weakRef = new WeakReference(target); 344set { _wrViewTable = new WeakReference(value); } 379_context = new WeakReference(context); 385_callbackTarget = (target != null)? new WeakReference(target) : ViewManager.StaticWeakRef; 855internal static WeakReference StaticWeakRef = new WeakReference(StaticObject); 856internal static WeakReference NullWeakRef = new WeakReference(null);
src\Framework\MS\Internal\Data\XDeferredAxisSource.cs (1)
51_component = new WeakReference(component);
src\Framework\MS\Internal\Ink\HighContrastHelper.cs (1)
121__highContrastCallbackList.Add(new WeakReference(highContrastCallback));
src\Framework\MS\Internal\PtsHost\BreakRecordTable.cs (1)
274entry.DocumentPage = new WeakReference(page);
src\Framework\MS\Internal\PtsHost\PageBreakRecord.cs (1)
49_ptsContext = new WeakReference(ptsContext);
src\Framework\MS\Internal\PtsHost\PageVisual.cs (1)
34_owner = new WeakReference(owner);
src\Framework\MS\Internal\PtsHost\PtsCache.cs (3)
241_contextPool[index].Owner = new WeakReference(ptsContext); 371_contextPool[index].Owner = new WeakReference(null); 444_contextPool[index].Owner = new WeakReference(null);
src\Framework\MS\Internal\WeakHashtable.cs (1)
199_weakRef = new WeakReference(o);
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
38_item = new WeakReference(item);
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
747: base(o)
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (4)
61_owner = new WeakReference(owner); 72_owner = new WeakReference(owner); 83_owner = new WeakReference(owner); 121_owner = new WeakReference(owner);
src\Framework\System\Windows\Controls\Grid.cs (1)
3150Thread.SetData(s_tempDefinitionsDataSlot, new WeakReference(extData.TempDefinitions));
src\Framework\System\Windows\Controls\ItemCollection.cs (2)
81_modelParent = new WeakReference(modelParent); 97_modelParent = new WeakReference(modelParent);
src\Framework\System\Windows\Controls\ListBox.cs (1)
1008_lastActionItem = new WeakReference(value);
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
307_positionList.Insert(index, new WeakReference(position));
src\Framework\System\Windows\Controls\PopupControlService.cs (4)
682_lastMouseDirectlyOver = new WeakReference(value); 720_lastMouseOverWithToolTip = new WeakReference(value); 758_lastObjectWithToolTip = new WeakReference(value); 796_lastChecked = new WeakReference(value);
src\Framework\System\Windows\Controls\RadioButton.cs (1)
92elements.Add(new WeakReference(radioButton));
src\Framework\System\Windows\Data\BindingExpression.cs (2)
335SetValue(Feature.CollectionViewSource, new WeakReference(value)); 824_ctxElement = new WeakReference(contextElement);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (3)
915_targetElement = new WeakReference(target); 2789item = new WeakReference(item); 2830item = new WeakReference(item);
src\Framework\System\Windows\Data\BindingGroup.cs (3)
836itemReference = new WeakReference(dataContextItem); 1755_itemWR = new WeakReference(item); // WR to avoid leaks 1958_itemReference = new WeakReference(item);
src\Framework\System\Windows\Data\CollectionViewSource.cs (1)
1234_parent = new WeakReference(parent);
src\Framework\System\Windows\Documents\PageContent.cs (2)
532_pageRef = new WeakReference(par.Result); 577_pageRef = new WeakReference(p);
src\Framework\System\Windows\Documents\TextElementCollectionHelper.cs (1)
72_cleanParentList[index] = new WeakReference(new ParentCollectionPair(parent, collection));
src\Framework\System\Windows\Documents\TextStore.cs (1)
4037internal ScopeWeakReference(object obj) : base(obj)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (3)
123d.SetValue(TabOnceActiveElementProperty, new WeakReference(value)); 146d.SetValue(ControlTabOnceActiveElementProperty, new WeakReference(value)); 3616_list.Add(new WeakReference(item));
src\Framework\System\Windows\Interop\HwndHost.cs (1)
1425public WeakEventDispatcherShutdown(HwndHost hwndHost, Dispatcher that): base(hwndHost)
src\Framework\System\Windows\Media\Animation\Storyboard.cs (1)
2029clocks[this] = new WeakReference(clock);
src\Framework\System\Windows\ResourceDictionary.cs (2)
1461_inheritanceContext = new WeakReference(inheritanceContext); 1469_inheritanceContext = new WeakReference(DummyInheritanceContext);
src\Framework\System\Windows\ResourceReferenceExpression.cs (1)
527: base(target) {}
src\Framework\System\Windows\ThemeDictionaryExtension.cs (1)
229info.DictionaryReference = new WeakReference(dictionary);
src\Framework\System\Windows\Window.cs (1)
7452_currentPanningTarget = new WeakReference(originalSource);
System (15)
compmod\system\componentmodel\design\serialization\MemberRelationshipService.cs (1)
131Owner = new WeakReference(rel.Owner);
compmod\system\componentmodel\TypeDescriptor.cs (1)
566associations.Add(new WeakReference(secondary));
compmod\system\diagnostics\Switch.cs (1)
61switches.Add(new WeakReference(this));
compmod\system\diagnostics\TraceSource.cs (1)
47tracesources.Add(new WeakReference(this));
misc\WeakHashtable.cs (1)
181internal EqualityWeakReference(object o) : base(o)
net\System\Net\_FtpControlStream.cs (1)
79m_Credentials = new WeakReference(null);
net\System\Net\_PooledStream.cs (2)
47m_Owner = new WeakReference(owner); 296m_Owner = new WeakReference(newOwner);
net\System\Net\_TimerThread.cs (2)
214WeakReference weakQueue = new WeakReference(queue); 240weakQueue = new WeakReference(queue);
net\System\Net\ServicePointManager.cs (2)
815servicePointReference = new WeakReference(servicePoint); 880servicePointReference = new WeakReference(servicePoint);
regex\system\text\regularexpressions\Regex.cs (1)
1559WeakReference _ref = new WeakReference(null);
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (1)
73this.weakParentProcess = new WeakReference(parent);
sys\system\io\ports\SerialStream.cs (1)
1689streamWeakReference = new WeakReference(stream);
System.Activities (1)
System\Activities\ActivityBuilder.cs (1)
192this.targetObject = new WeakReference(target);
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreLock.cs (1)
114this.lockOwnerInstanceHandle = new WeakReference(lockOwnerInstanceHandle);
System.Activities.Presentation (9)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ResolverCache.cs (2)
28this.cache[type] = new WeakReference(result); 32this.cache.Add(type, new WeakReference(result));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (2)
113this.activeManagedFocusScope = new WeakReference(value); 421this.scopes.Insert(index, new WeakReference(scope));
System.Activities.Presentation\System\Activities\Presentation\DefaultCommandExtensionCallback.cs (1)
146this.ownerReference = new WeakReference(value);
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
43activeDesignerViewReference = new WeakReference(value);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
163objectMap[instance] = new WeakReference(retval);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1746this.reference = new WeakReference(designerView);
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
773this.reference = new WeakReference(importDesigner);
System.AddIn (2)
System\Addin\Hosting\AddInControllerImpl.cs (2)
160_havReference = new WeakReference(hostAddinView); 376_HAV = new WeakReference(hav);
System.Core (3)
Microsoft\Scripting\Actions\BindingRestrictions.cs (1)
302Expression.Constant(new WeakReference(_instance)),
Microsoft\Scripting\Actions\ExpandoClass.cs (1)
88infos.Add(new WeakReference(ec));
System\Security\Cryptography\BCryptHashAlgorithm.cs (1)
47m_algorithmHandles[handleKey] = new WeakReference(algorithmHandle);
System.Data (18)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ResolverCache.cs (2)
28this.cache[type] = new WeakReference(result); 32this.cache.Add(type, new WeakReference(result));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DefaultCommandExtensionCallback.cs (1)
146this.ownerReference = new WeakReference(value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
43activeDesignerViewReference = new WeakReference(value);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
163objectMap[instance] = new WeakReference(retval);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1746this.reference = new WeakReference(designerView);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
773this.reference = new WeakReference(importDesigner);
fx\src\data\System\Data\DataTableReaderListener.cs (1)
27this.readerWeak = new WeakReference(reader);
fx\src\data\System\Data\DataViewListener.cs (1)
27_dvWeak = new WeakReference(dv);
fx\src\data\System\Data\Odbc\OdbcCommand.cs (1)
741this.weakDataReaderReference = new WeakReference(localReader);
fx\src\data\System\Data\Odbc\OdbcConnection.cs (2)
185weakTransaction = new WeakReference((OdbcTransaction)value); 822this.weakTransaction = new WeakReference(transaction); // MDAC 69188
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
167weakTransaction = new WeakReference((OleDbTransaction)value);
fx\src\data\System\Data\Selection.cs (1)
135this.rowFilter = new WeakReference(rowFilter);
fx\src\data\System\Data\SqlClient\sqlinternaltransaction.cs (2)
67_parent = new WeakReference(outerTransaction); 361_parent = new WeakReference(transaction);
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
52private readonly WeakReference _owner = new WeakReference(null); // the owner of this session, used to track when it's been orphaned
fx\src\data\System\NewXml\XPathNodePointer.cs (1)
116this._owner = new WeakReference( owner );
System.Data.Entity (3)
System\Data\Metadata\MetadataCache.cs (2)
433_entryTokenReference = new WeakReference(null); 434_weakReferenceItemCollection = new WeakReference(null);
System\Data\Objects\ObjectViewListener.cs (1)
39_viewWeak = new WeakReference(view);
System.Drawing (2)
commonui\System\Drawing\Advanced\SystemColorTracker.cs (1)
59list[index] = new WeakReference(obj);
misc\ClientUtils.cs (1)
457weakHolder = new WeakReference(obj);
System.Net (2)
net\PeerToPeer\Collaboration\Peer.cs (1)
1050m_peerWeakReference = new WeakReference(parentPeer);
net\PeerToPeer\PeerNameResolver.cs (1)
171m_PeerNameResolverWeakReference = new WeakReference(parent);
System.Runtime.DurableInstancing (1)
System\Runtime\DurableInstancing\InstanceStore.cs (1)
302this.owners.Add(instanceOwnerId, new WeakReference(owner));
System.ServiceModel (5)
System\ServiceModel\Channels\UriPrefixTable.cs (1)
464this.weakData = new WeakReference(data);
System\ServiceModel\Diagnostics\PerformanceCountersBase.cs (1)
159this.cache[instanceName] = new WeakReference(instance);
System\ServiceModel\Dispatcher\EndpointAddressMessageFilter.cs (1)
198this.processorPool = new WeakReference(null);
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (1)
62this.processorPool = new WeakReference(null);
System\ServiceModel\Dispatcher\QueryMatcher.cs (1)
282this.processorPool = new WeakReference(null);
System.ServiceModel.Internals (1)
System\Runtime\Collections\HopperCache.cs (1)
82value = new WeakReference(value);
System.Transactions (5)
System\Transactions\Oletx\OleTxTransaction.cs (1)
1500this.weakRealTransaction = new WeakReference(realTx);
System\Transactions\Transaction.cs (1)
155contextData.WeakDefaultComContext = new WeakReference(defaultContext);
System\Transactions\TransactionTable.cs (3)
325WeakReference newSetWeak = new WeakReference( newBucketSet ); 352WeakReference newSetWeak = new WeakReference( newBucketSet ); 670newBucket.nextBucketWeak = new WeakReference( this );
System.Windows.Forms (11)
misc\GDI\DeviceContext.cs (1)
581g.font = new WeakReference(selectedFont);
misc\WeakHashtable.cs (1)
181internal EqualityWeakReference(object o) : base(o)
winforms\Managed\System\WinForms\Application.cs (1)
2661activatingControlRef = new WeakReference(value);
winforms\Managed\System\WinForms\AxHost.cs (2)
6126pRef = new WeakReference(principal); 6127pContainer = new WeakReference(container);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (2)
84pictureRef = new WeakReference(nativePicture); 128pictureRef = new WeakReference(pict);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (1)
127weakObjRef = new WeakReference(obj);
winforms\Managed\System\WinForms\MenuItem.cs (1)
923allCreatedMenuItems.Add(uniqueID, new WeakReference(this));
winforms\Managed\System\WinForms\NativeWindow.cs (1)
134weakThisPtr = new WeakReference(this);
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (1)
63destinationThreadRef = new WeakReference(value);
System.Workflow.Runtime (3)
Tracking.cs (2)
163_listeners.Add(exec.ID, new WeakReference(listener)); 180_listeners.Add(exec.ID, new WeakReference(listener));
WorkflowRuntime.cs (1)
212_runtimes.Add(_uid, new WeakReference(this));
System.Xml (4)
System\Xml\Dom\XmlDocument.cs (2)
222elementList.Add(new WeakReference(elem)); 229elementList.Add(new WeakReference(elem));
System\Xml\Dom\XmlElementList.cs (2)
42this.listener = new WeakReference(new XmlElementListListener(parent.Document, this)); 309this.elemList = new WeakReference(elemList);
System.Xml.Linq (2)
System\Xml\Linq\XLinq.cs (2)
454refNamespace = namespaces.Add(new WeakReference(new XNamespace(namespaceName.Substring(index, count)))); 508Interlocked.CompareExchange(ref refNmsp, new WeakReference(new XNamespace(namespaceName)), refOld);
WindowsBase (19)
Base\MS\Internal\ShutDownListener.cs (2)
71: base(target) 94_dispatcherWR = new WeakReference(dispatcher);
Base\MS\Internal\TraceLevelStore.cs (1)
105_element = new WeakReference(element);
Base\MS\Internal\WeakEventTable.cs (1)
519_source = new WeakReference(source);
Base\MS\Internal\WeakReferenceKey.cs (1)
28_item = new WeakReference(item);
Base\System\Windows\DependentList.cs (2)
151_wrEX = (null == e) ? null : new WeakReference(e); 153_wrDO = (null == o) ? null : new WeakReference(o);
Base\System\Windows\EffectiveValueEntry.cs (1)
683public BaseValueWeakReference(object target) : base(target) {}
Base\System\Windows\Freezable.cs (1)
1830Owner = new WeakReference(dependObject);
Base\System\Windows\Threading\Dispatcher.cs (3)
41_possibleDispatcher = new WeakReference(null); 175_possibleDispatcher = new WeakReference(dispatcher); 1924_dispatchers.Add(new WeakReference(this));
Base\System\Windows\WeakEventManager.cs (3)
521_target = new WeakReference(target); 527_target = new WeakReference(target); 528_handler = new WeakReference(handler);
Shared\MS\Internal\SafeSecurityHelper.cs (1)
465:base(target)
Shared\MS\Internal\WeakReferenceList.cs (2)
115return base.Internal_Add(new WeakReference(obj)); 157return base.Internal_Insert(index, new WeakReference(obj));
Shared\MS\Win32\HwndSubclass.cs (1)
92_hook = new WeakReference(hook);