18 types derived from WeakReference
PresentationCore (6)
Core\CSharp\System\Windows\Interop\HwndSource.cs (2)
3087private class WeakEventDispatcherShutdown: WeakReference 3119private class WeakEventPreprocessMessage: WeakReference
Core\CSharp\System\Windows\LayoutManager.cs (1)
1059internal class ListItem: WeakReference
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (1)
826private class WeakBitmapFrameDecodeEventSink : WeakReference
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
2038private class WeakBitmapSourceEventSink : WeakReference
Shared\MS\Internal\SafeSecurityHelper.cs (1)
462class WeakRefKey : WeakReference
PresentationFramework (4)
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
744private class ItemWeakReference : WeakReference
src\Framework\System\Windows\Documents\TextStore.cs (1)
4035private class ScopeWeakReference : WeakReference
src\Framework\System\Windows\Interop\HwndHost.cs (1)
1423private class WeakEventDispatcherShutdown: WeakReference
src\Framework\System\Windows\ResourceReferenceExpression.cs (1)
524private class ResourceReferenceExpressionWeakContainer : WeakReference
System (1)
misc\WeakHashtable.cs (1)
178private sealed class EqualityWeakReference : WeakReference
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (1)
277private class WeakKey : WeakReference
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (1)
277private class WeakKey : WeakReference
System.Windows.Forms (2)
misc\WeakHashtable.cs (1)
178private sealed class EqualityWeakReference : WeakReference
winforms\Managed\System\WinForms\Command.cs (1)
23internal class Command : WeakReference {
WindowsBase (3)
Base\MS\Internal\ShutDownListener.cs (1)
53internal abstract class ShutDownListener : WeakReference
Base\System\Windows\EffectiveValueEntry.cs (1)
681class BaseValueWeakReference : WeakReference
Shared\MS\Internal\SafeSecurityHelper.cs (1)
462class WeakRefKey : WeakReference
188 instantiations of 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 (17)
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\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\BitmapImage.cs (1)
299ImagingCache.AddToImageCache(uri, new WeakReference(this));
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (1)
1429_nativeMedia = new WeakReference(nativeMedia);
PresentationFramework (55)
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\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\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\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\ThemeDictionaryExtension.cs (1)
229info.DictionaryReference = new WeakReference(dictionary);
src\Framework\System\Windows\Window.cs (1)
7452_currentPanningTarget = new WeakReference(originalSource);
System (14)
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));
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 (21)
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\OleDb\OleDbTransaction.cs (1)
186_nestedTransaction = new WeakReference(transaction, false);
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (1)
39private readonly WeakReference _owningObject = new WeakReference(null, false); // [usage must be thread safe] the owning object, when not in the pool. (both Pooled and Non-Pooled connections)
fx\src\data\System\Data\ProviderBase\DbReferenceCollection.cs (1)
29_weak = new WeakReference(target, false);
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 (8)
System\Transactions\Oletx\OleTxTransaction.cs (1)
1500this.weakRealTransaction = new WeakReference(realTx);
System\Transactions\Transaction.cs (1)
155contextData.WeakDefaultComContext = new WeakReference(defaultContext);
System\Transactions\TransactionManager.cs (1)
675weakRef = new WeakReference( tx, false );
System\Transactions\TransactionState.cs (2)
3001WeakReference weakRef = new WeakReference( tx.outcomeSource, false ); 4141WeakReference weakRef = new WeakReference(tx.outcomeSource, false);
System\Transactions\TransactionTable.cs (3)
325WeakReference newSetWeak = new WeakReference( newBucketSet ); 352WeakReference newSetWeak = new WeakReference( newBucketSet ); 670newBucket.nextBucketWeak = new WeakReference( this );
System.Windows.Forms (14)
misc\GDI\DeviceContext.cs (1)
581g.font = new WeakReference(selectedFont);
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\BindingContext.cs (3)
165listManagers[GetKey(dataSource, "")] = new WeakReference(listManager, false); 250this.wRef = new WeakReference(dataSource, false); 377listManagers.Add(key, new WeakReference(bindingManagerBase, false));
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\PropertyGridInternal\PropertyGridView.cs (1)
7292this.reference = new WeakReference(parent, false);
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 (16)
Base\MS\Internal\ShutDownListener.cs (1)
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\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\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);
471 references to WeakReference
mscorlib (25)
system\diagnostics\eventing\eventsource.cs (11)
479foreach (WeakReference eventSourceRef in EventListener.s_EventSources) 3026foreach (WeakReference eventSourceRef in EventListener.s_EventSources) 4410s_EventSources = new List<WeakReference>(2); 4431WeakReference weakRef = s_EventSources[i]; 4466foreach (var esRef in s_EventSources) 4487foreach (WeakReference eventSourceRef in s_EventSources) 4538foreach (WeakReference eventSourceRef in s_EventSources) 4580Interlocked.CompareExchange(ref s_EventSources, new List<WeakReference>(2), null); 4610WeakReference[] eventSourcesSnapshot = s_EventSources.ToArray(); 4614WeakReference eventSourceRef = eventSourcesSnapshot[i]; 4653internal static List<WeakReference> s_EventSources;
system\gc.cs (1)
320public static int GetGeneration(WeakReference wo) {
system\internal.cs (1)
79new Dictionary<uint, WeakReference>(); // NCL team needs this
system\runtime\remoting\identityholder.cs (10)
121WeakReference wr = o as WeakReference; 235WeakReference wr = o as WeakReference; 248WeakReference wr = o as WeakReference; 536WeakReference wr = o as WeakReference; 740WeakReference wr = oRef as WeakReference;
system\security\policy\evidence.cs (1)
88private WeakReference m_cloneOrigin;
system\security\policy\hash.cs (1)
36private WeakReference m_rawData;
PresentationCore (65)
Core\CSharp\MS\Internal\Automation\ElementProxy.cs (2)
317if (_peer is WeakReference) 319AutomationPeer peer = (AutomationPeer)((WeakReference)_peer).Target;
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (2)
2157internal WeakReference ElementProxyWeakReference 2447private WeakReference _elementProxyWeakReference = null;
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (11)
663WeakReference weakReference = (WeakReference)elements[i]; 692WeakReference weakReference = (WeakReference)elements[i]; 741DependencyProperty.RegisterAttached("AccessKeyElement", typeof(WeakReference), typeof(AccessKeyManager)); 755WeakReference cachedElementWeakRef = (WeakReference)d.GetValue(AccessKeyElementProperty); 778WeakReference currentElementWeakRef = (WeakReference)elements[i]; 799WeakReference currentElementWeakRef = (WeakReference)elements[i];
Core\CSharp\System\Windows\Input\Command\CanExecuteChangedEventManager.cs (2)
482WeakReference _source; 483WeakReference _originalHandler;
Core\CSharp\System\Windows\Input\FocusManager.cs (4)
422private static readonly UncommonField<WeakReference> FocusedElementWeakCacheField = new UncommonField<WeakReference>(); 424private static readonly UncommonField<WeakReference> FocusedElementCache = new UncommonField<WeakReference>();
Core\CSharp\System\Windows\Input\MouseDevice.cs (1)
2388private WeakReference _rawMouseOver;
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
1433private WeakReference _manipulatingElement;
Core\CSharp\System\Windows\Interop\D3DImage.cs (1)
1028private WeakReference _listener;
Core\CSharp\System\Windows\Media\Animation\Animatable.cs (6)
314internal WeakReference GetWeakReference() 322StoredWeakReferenceField.SetValue(this, (WeakReference)reference); 325Debug.Assert(reference is WeakReference); 327return (WeakReference)reference; 404private static readonly UncommonField<WeakReference> StoredWeakReferenceField 405= new UncommonField<WeakReference>();
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (1)
1169protected WeakReference _dependencyObject;
Core\CSharp\System\Windows\Media\Animation\Clock.cs (3)
1448internal WeakReference WeakReference 1452WeakReference reference = _weakReference; 4461private WeakReference _weakReference;
Core\CSharp\System\Windows\Media\Animation\ClockGroup.cs (3)
80internal List<WeakReference> InternalRootChildren 421_rootChildren = new List<WeakReference>(); 619private List<WeakReference> _rootChildren;
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (3)
76_eventQueue = new Queue<WeakReference>(); 635WeakReference instance = _eventQueue.Dequeue(); 922private Queue<WeakReference> _eventQueue;
Core\CSharp\System\Windows\Media\Animation\WeakRefEnumerator.cs (3)
33internal WeakRefEnumerator(List<WeakReference> list) 139WeakReference currentRef = _list[_readIndex]; 180private List<WeakReference> _list;
Core\CSharp\System\Windows\Media\EventProxy.cs (1)
81private WeakReference target;
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (2)
1625WeakReference weakRef = ImagingCache.CheckDecoderCache(uri) as WeakReference;
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (5)
49internal List<WeakReference> decoders; 138entry.decoders = new List<WeakReference>(); 390foreach (WeakReference decoderReference in entry.decoders) 439foreach (WeakReference decoderReference in entry.decoders) 495foreach (WeakReference decoderReference in entry.decoders)
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (2)
257WeakReference bitmapWeakReference = ImagingCache.CheckImageCache(uri) as WeakReference;
Core\CSharp\System\Windows\Media\Imaging\ImagingCache.cs (2)
95WeakReference weakRef = de.Value as WeakReference;
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (1)
1418private WeakReference _nativeMedia;
Shared\MS\Internal\AppDomainShutdownMonitor.cs (7)
32_dictionary = new Dictionary<WeakReference, WeakReference>(); 35public static void Add(WeakReference listener) 49public static void Remove(WeakReference listener) 71foreach (WeakReference value in _dictionary.Values) 81private static Dictionary<WeakReference, WeakReference> _dictionary;
Shared\MS\Internal\SafeSecurityHelper.cs (2)
252WeakReference weakRef = key as WeakReference;
PresentationFramework (128)
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (1)
864internal WeakDependencySource(WeakReference wr, DependencyProperty dp)
src\Framework\MS\Internal\Data\CollectionViewGroupInternal.cs (6)
560WeakReference weakRef = _nameToGroupMap[key] as WeakReference; 588WeakReference weakRef = _nameToGroupMap[nameKey] as WeakReference; 615WeakReference weakRef = _nameToGroupMap[key] as WeakReference;
src\Framework\MS\Internal\Data\ObjectRef.cs (1)
687WeakReference _element; // to DependencyObject (bug 986435)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (1)
78internal void SetTreeContext(WeakReference wr)
src\Framework\MS\Internal\Data\ValueTable.cs (4)
115WeakReference wr = value as WeakReference; 360WeakReference _item; 361WeakReference _descriptor;
src\Framework\MS\Internal\Data\ViewManager.cs (7)
221WeakReference _weakRef; 358WeakReference _wrViewTable = ViewManager.NullWeakRef; 407WeakReference wrContext = _context as WeakReference; 438WeakReference _callbackTarget; 855internal static WeakReference StaticWeakRef = new WeakReference(StaticObject); 856internal static WeakReference NullWeakRef = new WeakReference(null);
src\Framework\MS\Internal\Data\XDeferredAxisSource.cs (1)
112WeakReference _component; // the XElement of interest
src\Framework\MS\Internal\Ink\HighContrastHelper.cs (4)
71__highContrastCallbackList = new List<WeakReference>(); 104WeakReference weakRef = __highContrastCallbackList[j]; 160WeakReference weakRef = __highContrastCallbackList[j]; 225private static List<WeakReference> __highContrastCallbackList;
src\Framework\MS\Internal\PtsHost\BreakRecordTable.cs (4)
88WeakReference pageRef; 379WeakReference pageRef; 405WeakReference pageRef; 513public WeakReference DocumentPage;
src\Framework\MS\Internal\PtsHost\PageBreakRecord.cs (1)
191private WeakReference _ptsContext;
src\Framework\MS\Internal\PtsHost\PageVisual.cs (1)
173private readonly WeakReference _owner;
src\Framework\MS\Internal\PtsHost\PtsCache.cs (1)
918internal WeakReference Owner;
src\Framework\MS\Internal\WeakHashtable.cs (1)
195private WeakReference _weakRef;
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (5)
273WeakReference weakRefEP = null; 294internal void AddProxyToWeakRefStorage(WeakReference wr, DateTimeAutomationPeer dateTimePeer) 679private Dictionary<DateTimeCalendarModePair, WeakReference> WeakRefElementProxyStorage 686private Dictionary<DateTimeCalendarModePair, WeakReference> _weakRefElementProxyStorage = new Dictionary<DateTimeCalendarModePair, WeakReference>();
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
917private WeakReference _item;
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (5)
526WeakReference weakRefEP = WeakRefElementProxyStorage[column]; 545internal void AddProxyToWeakRefStorage(WeakReference wr, DataGridCellItemAutomationPeer cellItemPeer) 614private ItemPeersStorage<WeakReference> WeakRefElementProxyStorage 625private ItemPeersStorage<WeakReference> _weakRefElementProxyStorage = new ItemPeersStorage<WeakReference>();
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (10)
234internal void AddProxyToWeakRefStorage(WeakReference wr, ItemAutomationPeer itemPeer) 457WeakReference weakRefEP = WeakRefElementProxyStorage[item]; 524internal ItemPeersStorage<WeakReference> WeakRefElementProxyStorage 547private ItemPeersStorage<WeakReference> _WeakRefElementProxyStorage = new ItemPeersStorage<WeakReference>(); 697if(!(typeof(T).IsAssignableFrom(typeof(System.WeakReference)))) 707WeakReference weakRef = dictionaryEntry.Value as WeakReference; 731WeakReference weakRef = keyValuePair.Value as WeakReference;
src\Framework\System\Windows\Automation\Peers\TreeViewDataItemAutomationPeer.cs (2)
338internal ItemPeersStorage<WeakReference> WeakRefElementProxyStorageCache 352private ItemPeersStorage<WeakReference> _WeakRefElementProxyStorageCache;
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (1)
292private WeakReference _owner;
src\Framework\System\Windows\Controls\Grid.cs (2)
3146WeakReference tempDefinitionsWeakRef = (WeakReference)Thread.GetData(s_tempDefinitionsDataSlot);
src\Framework\System\Windows\Controls\ItemCollection.cs (1)
2485private WeakReference _modelParent; // use WeakRef to avoid leaking the parent
src\Framework\System\Windows\Controls\ListBox.cs (2)
913private object GetWeakReferenceTarget(ref WeakReference weakReference) 1014private WeakReference _lastActionItem;
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (4)
753WeakReference tempWeakReference = (WeakReference)_positionList[backwardGravitySlot]; 882WeakReference weakReference; 888weakReference = (WeakReference)_positionList[index];
src\Framework\System\Windows\Controls\PopupControlService.cs (4)
1208private WeakReference _lastMouseDirectlyOver; 1209private WeakReference _lastMouseOverWithToolTip; 1210private WeakReference _lastObjectWithToolTip; 1211private WeakReference _lastChecked;
src\Framework\System\Windows\Controls\RadioButton.cs (4)
123WeakReference weakReference = (WeakReference)elements[i]; 150WeakReference weakReference = (WeakReference)elements[i];
src\Framework\System\Windows\Data\BindingExpression.cs (9)
327WeakReference wr = (WeakReference)GetValue(Feature.CollectionViewSource, null); 592WeakReference dataErrorWR = (WeakReference)GetValue(Feature.DataErrorValue, null); 1226WeakReference wr = GetValue(Feature.CollectionViewSource, null) as WeakReference; 2311WeakReference dataErrorWR = (WeakReference)GetValue(Feature.DataErrorValue, null); 2731WeakReference _ctxElement;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (7)
1984internal WeakReference TargetElementReference 2800internal static object CreateReference(WeakReference item) 2822WeakReference wr = oldReference as WeakReference; 2852WeakReference wr = reference as WeakReference; 2940WeakReference _targetElement;
src\Framework\System\Windows\Data\BindingGroup.cs (20)
70_itemsRW = new Collection<WeakReference>(); 816IList<WeakReference> newItems = new Collection<WeakReference>(); 830WeakReference itemReference = _itemsRW.Count > 0 ? _itemsRW[0] : null; 1075void UpdateNotifyDataErrors(INotifyDataErrorInfo indei, WeakReference itemWR) 1104void UpdateNotifyDataErrorValidationErrors(WeakReference itemWR, List<object> errors) 1290static int FindIndexOf(WeakReference wr, IList<WeakReference> list) 1298static int FindIndexOf(object item, IList<WeakReference> list) 1564Collection<WeakReference> _itemsRW; 1567Dictionary<WeakReference, List<ValidationError>> _notifyDataErrors = new Dictionary<WeakReference, List<ValidationError>>(); 1675public void AddUniqueItems(IList<WeakReference> list) 1683WeakReference itemWR = _table[i].ItemReference; 1770public WeakReference ItemReference 1806WeakReference _itemWR; 1888public void AddUniqueItems(IList<WeakReference> list) 1892WeakReference itemWR = _table[i].ItemReference; 1972public WeakReference ItemReference { get { return _itemReference; } } 1984WeakReference _itemReference;
src\Framework\System\Windows\Data\CollectionViewSource.cs (1)
1256WeakReference _parent;
src\Framework\System\Windows\Documents\PageContent.cs (1)
657private WeakReference _pageRef; // weak ref to page's root visual
src\Framework\System\Windows\Documents\TextElementCollectionHelper.cs (3)
115WeakReference parentReference = _cleanParentList[index]; 203private static readonly WeakReference []_cleanParentList = new WeakReference[10];
src\Framework\System\Windows\Input\KeyboardNavigation.cs (8)
104= DependencyProperty.RegisterAttached("TabOnceActiveElement", typeof(WeakReference), typeof(KeyboardNavigation)); 108WeakReference weakRef = (WeakReference)d.GetValue(TabOnceActiveElementProperty); 127= DependencyProperty.RegisterAttached("ControlTabOnceActiveElement", typeof(WeakReference), typeof(KeyboardNavigation)); 131WeakReference weakRef = (WeakReference)d.GetValue(ControlTabOnceActiveElementProperty); 3727List<WeakReference> _list = new List<WeakReference>(1);
src\Framework\System\Windows\Media\Animation\Storyboard.cs (2)
1960WeakReference clockReference = null; 1966clockReference = clocks[this] as WeakReference;
src\Framework\System\Windows\ResourceDictionary.cs (1)
2627private WeakReference _inheritanceContext;
src\Framework\System\Windows\ThemeDictionaryExtension.cs (1)
187public WeakReference DictionaryReference;
src\Framework\System\Windows\Window.cs (1)
7774private WeakReference _currentPanningTarget;
System (48)
compmod\system\componentmodel\design\serialization\MemberRelationshipService.cs (1)
126internal WeakReference Owner;
compmod\system\componentmodel\TypeDescriptor.cs (6)
556WeakReference r = (WeakReference)associations[idx]; 1311WeakReference weakRef = (WeakReference)associations[idx]; 3138WeakReference weakRef = (WeakReference)associations[idx];
compmod\system\diagnostics\Switch.cs (4)
40private static List<WeakReference> switches = new List<WeakReference>(); 70List<WeakReference> buffer = new List<WeakReference>(switches.Count);
compmod\system\diagnostics\TraceSource.cs (4)
19private static List<WeakReference> tracesources = new List<WeakReference>(); 54List<WeakReference> buffer = new List<WeakReference>(tracesources.Count);
misc\WeakHashtable.cs (6)
102WeakReference wr = o as WeakReference; 137WeakReference wX = x as WeakReference; 138WeakReference wY = y as WeakReference;
net\System\Net\_FtpControlStream.cs (1)
53private WeakReference m_Credentials;
net\System\Net\_PooledStream.cs (4)
31private WeakReference m_Owner; // the owning object, when not in the pool. 98WeakReference weakref = m_Owner; 110WeakReference owner = m_Owner; 120WeakReference weakref = m_Owner;
net\System\Net\_TimerThread.cs (12)
174private static LinkedList<WeakReference> s_Queues = new LinkedList<WeakReference>(); 175private static LinkedList<WeakReference> s_NewQueues = new LinkedList<WeakReference>(); 214WeakReference weakQueue = new WeakReference(queue); 234WeakReference weakQueue = (WeakReference) s_QueuesCache[durationMilliseconds]; 237weakQueue = (WeakReference) s_QueuesCache[durationMilliseconds]; 248if (((WeakReference) pair.Value).Target == null) { 663for (LinkedListNode<WeakReference> node = s_NewQueues.First; node != null; node = s_NewQueues.First) { 673for (LinkedListNode<WeakReference> node = s_Queues.First; node != null; /* node = node.Next must be done in the body */) { 676LinkedListNode<WeakReference> next = node.Next;
net\System\Net\ServicePointManager.cs (7)
162foreach (WeakReference servicePointReference in s_ServicePointTable) { 796WeakReference servicePointReference = s_ServicePointTable[tempEntry] as WeakReference; 860WeakReference servicePointReference = s_ServicePointTable[tempEntry] as WeakReference; 902WeakReference servicePointReference = item.Value as WeakReference;
regex\system\text\regularexpressions\Regex.cs (1)
1559WeakReference _ref = new WeakReference(null);
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (1)
62WeakReference weakParentProcess;
sys\system\io\ports\SerialStream.cs (1)
1671private WeakReference streamWeakReference;
System.Activities (1)
System\Activities\ActivityBuilder.cs (1)
187WeakReference targetObject;
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreLock.cs (1)
20WeakReference lockOwnerInstanceHandle;
System.Activities.Presentation (18)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ResolverCache.cs (3)
14private Dictionary<Type, WeakReference> cache; 18this.cache = new Dictionary<Type, WeakReference>(); 40WeakReference value;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (7)
32private List<WeakReference> scopes = new List<WeakReference>(); 34private WeakReference activeManagedFocusScope = null; 340WeakReference curRef = this.scopes[curScopeIndex]; 365WeakReference curRef = this.scopes[curScopeIndex]; 402WeakReference curRef = this.scopes[startIndex]; 428WeakReference curRef = this.scopes[curScopeIndex];
System.Activities.Presentation\System\Activities\Presentation\DefaultCommandExtensionCallback.cs (1)
125private WeakReference ownerReference;
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
22private static WeakReference activeDesignerViewReference;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (4)
36WeakKeyDictionary<object, WeakReference> objectMap; 53objectMap = new WeakKeyDictionary<object, WeakReference>(ObjectReferenceEqualityComparer<object>.Default); 747WeakReference mappedModelItem = null; 983foreach (WeakReference weakReference in this.modelTreeManager.objectMap.Values)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1742private WeakReference reference;
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
769private WeakReference reference;
System.AddIn (2)
System\Addin\Hosting\AddInControllerImpl.cs (2)
59private WeakReference _havReference; 370internal WeakReference _HAV;
System.Core (9)
Microsoft\Scripting\Actions\BindingRestrictions.cs (1)
303typeof(WeakReference).GetProperty("Target")
Microsoft\Scripting\Actions\ExpandoClass.cs (6)
31private Dictionary<int, List<WeakReference>> _transitions; // cached transitions 66List<WeakReference> infos = GetTransitionList(hashCode); 97private List<WeakReference> GetTransitionList(int hashCode) { 99_transitions = new Dictionary<int, List<WeakReference>>(); 102List<WeakReference> infos; 104_transitions[hashCode] = infos = new List<WeakReference>();
System\Security\Cryptography\BCryptHashAlgorithm.cs (2)
24private Dictionary<string, WeakReference> m_algorithmHandles; 29m_algorithmHandles = new Dictionary<string, WeakReference>();
System.Data (32)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ResolverCache.cs (3)
14private Dictionary<Type, WeakReference> cache; 18this.cache = new Dictionary<Type, WeakReference>(); 40WeakReference value;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (7)
32private List<WeakReference> scopes = new List<WeakReference>(); 34private WeakReference activeManagedFocusScope = null; 340WeakReference curRef = this.scopes[curScopeIndex]; 365WeakReference curRef = this.scopes[curScopeIndex]; 402WeakReference curRef = this.scopes[startIndex]; 428WeakReference curRef = this.scopes[curScopeIndex];
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DefaultCommandExtensionCallback.cs (1)
125private WeakReference ownerReference;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
22private static WeakReference activeDesignerViewReference;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (4)
36WeakKeyDictionary<object, WeakReference> objectMap; 53objectMap = new WeakKeyDictionary<object, WeakReference>(ObjectReferenceEqualityComparer<object>.Default); 747WeakReference mappedModelItem = null; 983foreach (WeakReference weakReference in this.modelTreeManager.objectMap.Values)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1742private WeakReference reference;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
769private WeakReference reference;
fx\src\data\System\Data\DataTableReaderListener.cs (1)
19private WeakReference readerWeak;
fx\src\data\System\Data\DataViewListener.cs (1)
18private readonly WeakReference _dvWeak;
fx\src\data\System\Data\Odbc\OdbcCommand.cs (1)
49private WeakReference weakDataReaderReference;
fx\src\data\System\Data\Odbc\OdbcConnection.cs (3)
32private WeakReference weakTransaction; 273WeakReference weak = weakTransaction; 329WeakReference weak = this.weakTransaction;
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
70private WeakReference weakTransaction;
fx\src\data\System\Data\OleDb\OleDbTransaction.cs (1)
25private WeakReference _nestedTransaction; // child transactions
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (1)
39private readonly WeakReference _owningObject = new WeakReference(null, false); // [usage must be thread safe] the owning object, when not in the pool. (both Pooled and Non-Pooled connections)
fx\src\data\System\Data\ProviderBase\DbReferenceCollection.cs (1)
21private WeakReference _weak; // the reference itself.
fx\src\data\System\Data\Selection.cs (1)
79private WeakReference rowFilter;
fx\src\data\System\Data\SqlClient\sqlinternaltransaction.cs (1)
45private WeakReference _parent; // weak ref to the outer transaction object; needs to be weak to allow GC to occur.
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)
16private WeakReference _owner; // Owner of this pointer (an DataDocumentXPathNavigator). When the associated DataDocumentXPathNavigator (the owner) goes away, this XPathNodePointer can go away as well.
System.Data.Entity (3)
System\Data\Metadata\MetadataCache.cs (2)
421private WeakReference _entryTokenReference; 423private WeakReference _weakReferenceItemCollection;
System\Data\Objects\ObjectViewListener.cs (1)
33private WeakReference _viewWeak;
System.Drawing (6)
commonui\System\Drawing\Advanced\SystemColorTracker.cs (5)
27private static WeakReference[] list = new WeakReference[INITIAL_SIZE]; 91WeakReference temp = list[left]; 122WeakReference[] newList = new WeakReference[list.Length * EXPAND_FACTOR];
misc\ClientUtils.cs (1)
453WeakReference weakHolder;
System.Net (2)
net\PeerToPeer\Collaboration\Peer.cs (1)
995WeakReference m_peerWeakReference;
net\PeerToPeer\PeerNameResolver.cs (1)
153WeakReference m_PeerNameResolverWeakReference;
System.Runtime.DurableInstancing (6)
System\Runtime\DurableInstancing\InstanceStore.cs (6)
20readonly Dictionary<Guid, WeakReference> owners = new Dictionary<Guid, WeakReference>(1); 163WeakReference ownerReference; 202WeakReference ownerReference; 270WeakReference ownerReference; 284WeakReference ownerRef;
System.ServiceModel (7)
System\ServiceModel\Channels\UriPrefixTable.cs (1)
421WeakReference weakData;
System\ServiceModel\Diagnostics\PerformanceCountersBase.cs (3)
124private readonly Dictionary<string, WeakReference> cache = new Dictionary<string, WeakReference>(); 135WeakReference wr;
System\ServiceModel\Dispatcher\EndpointAddressMessageFilter.cs (1)
184WeakReference processorPool;
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (1)
25WeakReference processorPool;
System\ServiceModel\Dispatcher\QueryMatcher.cs (1)
237protected WeakReference processorPool;
System.ServiceModel.Internals (5)
System\Runtime\Collections\HopperCache.cs (5)
115WeakReference weakRef; 122if (this.weak && (weakRef = last.Value as WeakReference) != null) 139value = this.weak && (weakRef = origValue as WeakReference) != null ? weakRef.Target : origValue; 148value = this.weak && (weakRef = origValue as WeakReference) != null ? weakRef.Target : origValue; 152value = this.weak && (weakRef = origValue as WeakReference) != null ? weakRef.Target : origValue;
System.Transactions (33)
System\Transactions\InternalTransaction.cs (2)
539WeakReference weakRef = (WeakReference)promotedTransactionTable[this.identifier];
System\Transactions\Oletx\OleTxTransaction.cs (2)
1460private WeakReference weakRealTransaction; 1530WeakReference localTxWeakRef = null;
System\Transactions\Oletx\OletxTransactionManager.cs (2)
1018WeakReference txWeakRef = (WeakReference) tableEnum.Value;
System\Transactions\Transaction.cs (1)
1558internal WeakReference WeakDefaultComContext;
System\Transactions\TransactionManager.cs (6)
97WeakReference weakRef = (WeakReference)entry.Value; 620WeakReference weakRef = (WeakReference) promotedTransactionTable[transactionIdentifier]; 650WeakReference weakRef = (WeakReference) promotedTransactionTable[transactionIdentifier];
System\Transactions\TransactionState.cs (2)
3001WeakReference weakRef = new WeakReference( tx.outcomeSource, false ); 4141WeakReference weakRef = new WeakReference(tx.outcomeSource, false);
System\Transactions\TransactionTable.cs (18)
310WeakReference nextSetWeak = (WeakReference)currentBucketSet.nextSetWeak; 325WeakReference newSetWeak = new WeakReference( newBucketSet ); 327WeakReference oldNextSetWeak = (WeakReference)Interlocked.CompareExchange( 352WeakReference newSetWeak = new WeakReference( newBucketSet ); 355WeakReference oldNextSetWeak = (WeakReference)Interlocked.CompareExchange( 440WeakReference nextWeakSet = null; 443nextWeakSet = (WeakReference)currentBucketSet.nextSetWeak; 455nextWeakSet = (WeakReference)currentBucketSet.nextSetWeak; 494nextWeakSet = (WeakReference)currentBucketSet.nextSetWeak; 526WeakReference abortingSetsWeak = 527(WeakReference)Interlocked.CompareExchange( ref lastBucketSet.nextSetWeak, null, nextWeakSet ); 547abortingSetsWeak = (WeakReference)abortingBucketSets.nextSetWeak; 612WeakReference nextWeakBucket = (WeakReference)currentBucket.nextBucketWeak; 633internal WeakReference nextBucketWeak;
System.Windows.Forms (22)
misc\GDI\DeviceContext.cs (1)
691internal WeakReference font;
misc\WeakHashtable.cs (6)
102WeakReference wr = o as WeakReference; 137WeakReference wX = x as WeakReference; 138WeakReference wY = y as WeakReference;
winforms\Managed\System\WinForms\Application.cs (1)
2358private WeakReference activatingControlRef;
winforms\Managed\System\WinForms\AxHost.cs (2)
6122private WeakReference pRef; 6123private WeakReference pContainer;
winforms\Managed\System\WinForms\BindingContext.cs (5)
238WeakReference wRef; 335WeakReference wRef; 336wRef = listManagers[key] as WeakReference; 409WeakReference wRef = (WeakReference) de.Value;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
26WeakReference pictureRef;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (1)
43internal WeakReference weakObjRef;
winforms\Managed\System\WinForms\MenuItem.cs (2)
993WeakReference weakRef = (WeakReference)allCreatedMenuItems[uniqueID];
winforms\Managed\System\WinForms\NativeWindow.cs (1)
107WeakReference weakThisPtr;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
7289internal WeakReference reference;
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (1)
23private WeakReference destinationThreadRef;
System.Workflow.Runtime (8)
Tracking.cs (5)
34private Dictionary<Guid, WeakReference> _listeners = new Dictionary<Guid, WeakReference>(); 119WeakReference weakref = null; 222foreach (KeyValuePair<Guid, WeakReference> kvp in _listeners) 281WeakReference wr = null;
WorkflowRuntime.cs (3)
120private static Dictionary<Guid, WeakReference> _runtimes = new Dictionary<Guid, WeakReference>(); 1544foreach (WeakReference wr in _runtimes.Values)
System.Xml (7)
System\Xml\Dom\XmlDocument.cs (5)
200private WeakReference GetElement(ArrayList elementList, XmlElement elem) { 202foreach( WeakReference elemRef in elementList) { 212foreach( WeakReference elemRef in gcElemRefs) 236WeakReference elemRef = GetElement(elementList, elem); 770foreach (WeakReference elemRef in elementList) {
System\Xml\Dom\XmlElementList.cs (2)
28WeakReference listener; // XmlElementListListener 303WeakReference elemList;
System.Xml.Linq (9)
System\Xml\Linq\XLinq.cs (9)
239static XHashtable<WeakReference> namespaces; 240static WeakReference refNone; 241static WeakReference refXml; 242static WeakReference refXmlns; 440Interlocked.CompareExchange(ref namespaces, new XHashtable<WeakReference>(ExtractNamespace, NamespacesCapacity), null); 442WeakReference refNamespace; 477private static string ExtractNamespace(WeakReference r) { 492private static XNamespace EnsureNamespace(ref WeakReference refNmsp, string namespaceName) { 493WeakReference refOld;
WindowsBase (32)
Base\MS\Internal\ShutDownListener.cs (1)
171WeakReference _dispatcherWR;
Base\MS\Internal\TraceLevelStore.cs (3)
134WeakReference wr; 140wr = this._element as WeakReference; 142wr = that._element as WeakReference;
Base\MS\Internal\WeakEventTable.cs (4)
532get { return ((WeakReference)_source).Target; } 559WeakReference wr; 565wr = this._source as WeakReference; 567wr = ek._source as WeakReference;
Base\MS\Internal\WeakReferenceKey.cs (1)
62private WeakReference _item;
Base\System\Collections\ObjectModel\WeakReadOnlyCollection.cs (4)
36IList<WeakReference> list; 40public WeakReadOnlyCollection(IList<WeakReference> list) { // assumption: the WRs in list refer to T's 304WeakReference wr = ie.Current as WeakReference;
Base\System\Windows\DependentList.cs (2)
133private WeakReference _wrDO; 134private WeakReference _wrEX;
Base\System\Windows\Freezable.cs (1)
1834public readonly WeakReference Owner;
Base\System\Windows\Threading\Dispatcher.cs (3)
40_dispatchers = new List<WeakReference>(); 3146private static List<WeakReference> _dispatchers; 3147private static WeakReference _possibleDispatcher;
Base\System\Windows\WeakEventManager.cs (2)
541WeakReference _target; 542WeakReference _handler;
Shared\MS\Internal\SafeSecurityHelper.cs (2)
252WeakReference weakRef = key as WeakReference;
Shared\MS\Internal\WeakReferenceEnumerator.cs (2)
65WeakReference weakRef = (WeakReference) _List[ _i++ ];
Shared\MS\Internal\WeakReferenceList.cs (6)
185WeakReference weakRef = (WeakReference) list[i]; 229WeakReference wr = (WeakReference)list[destIndex]; 246WeakReference wr = (WeakReference)list[i];
Shared\MS\Win32\HwndSubclass.cs (1)
739private WeakReference _hook;
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (2)
1144Type = new CodeTypeReference(typeof(WeakReference)), 1182CodeAssignStatement assignSchemaContextField = new CodeAssignStatement(schemaContext, typeof(WeakReference).New(xsc));