193 references to 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 (23)
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\Interop\HwndSource.cs (2)
3089
public WeakEventDispatcherShutdown(HwndSource source, Dispatcher that):
base
(source)
3126
public WeakEventPreprocessMessage(HwndSource source, bool addToFront):
base
(source)
Core\CSharp\System\Windows\LayoutManager.cs (1)
1061
internal ListItem() :
base
(null) {}
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\BitmapFrameDecode.cs (1)
829
:
base
(cloned)
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (1)
299
ImagingCache.AddToImageCache(uri, new
WeakReference
(this));
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
2041
:
base
(bitmapSource)
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (1)
1429
_nativeMedia = new
WeakReference
(nativeMedia);
Shared\MS\Internal\SafeSecurityHelper.cs (1)
465
:
base
(target)
PresentationFramework (59)
src\Framework\MS\Internal\Data\CollectionViewGroupInternal.cs (1)
541
_nameToGroupMap[nameKey] = new
WeakReference
(subgroup);
src\Framework\MS\Internal\Data\ObjectRef.cs (1)
647
_element = new
WeakReference
(o);
src\Framework\MS\Internal\Data\ValueTable.cs (3)
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\Automation\Peers\ItemAutomationPeer.cs (1)
747
:
base
(o)
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (4)
61
_owner = new
WeakReference
(owner);
72
_owner = new
WeakReference
(owner);
83
_owner = new
WeakReference
(owner);
121
_owner = new
WeakReference
(owner);
src\Framework\System\Windows\Controls\Grid.cs (1)
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\Documents\TextStore.cs (1)
4037
internal ScopeWeakReference(object obj) :
base
(obj)
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\Interop\HwndHost.cs (1)
1425
public WeakEventDispatcherShutdown(HwndHost hwndHost, Dispatcher that):
base
(hwndHost)
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\ResourceReferenceExpression.cs (1)
527
:
base
(target) {}
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 (15)
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));
misc\WeakHashtable.cs (1)
181
internal EqualityWeakReference(object o) :
base
(o)
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 (18)
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\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 (5)
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\TransactionTable.cs (3)
325
WeakReference newSetWeak = new
WeakReference
( newBucketSet );
352
WeakReference newSetWeak = new
WeakReference
( newBucketSet );
670
newBucket.nextBucketWeak = new
WeakReference
( this );
System.Windows.Forms (11)
misc\GDI\DeviceContext.cs (1)
581
g.font = new
WeakReference
(selectedFont);
misc\WeakHashtable.cs (1)
181
internal EqualityWeakReference(object o) :
base
(o)
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\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\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 (19)
Base\MS\Internal\ShutDownListener.cs (2)
71
:
base
(target)
94
_dispatcherWR = new
WeakReference
(dispatcher);
Base\MS\Internal\TraceLevelStore.cs (1)
105
_element = new
WeakReference
(element);
Base\MS\Internal\WeakEventTable.cs (1)
519
_source = new
WeakReference
(source);
Base\MS\Internal\WeakReferenceKey.cs (1)
28
_item = new
WeakReference
(item);
Base\System\Windows\DependentList.cs (2)
151
_wrEX = (null == e) ? null : new
WeakReference
(e);
153
_wrDO = (null == o) ? null : new
WeakReference
(o);
Base\System\Windows\EffectiveValueEntry.cs (1)
683
public BaseValueWeakReference(object target) :
base
(target) {}
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\SafeSecurityHelper.cs (1)
465
:
base
(target)
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);