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