41 writes to Target
mscorlib (3)
system\diagnostics\eventing\eventsource.cs (1)
4435
weakRef.
Target
= newEventSource;
system\runtime\remoting\identityholder.cs (2)
630
wr.
Target
= idObj;
744
wr.
Target
= null;
PresentationCore (3)
Core\CSharp\System\Windows\Input\MouseDevice.cs (1)
1795
_rawMouseOver.
Target
= rawMouseOver;
Core\CSharp\System\Windows\LayoutManager.cs (2)
1121
t.
Target
= target;
1128
t.
Target
= null; //let target die
PresentationFramework (8)
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
663
iwr.
Target
= item;
src\Framework\System\Windows\Controls\Grid.cs (1)
3159
tempDefinitionsWeakRef.
Target
= extData.TempDefinitions;
src\Framework\System\Windows\Controls\PopupControlService.cs (4)
686
_lastMouseDirectlyOver.
Target
= value;
724
_lastMouseOverWithToolTip.
Target
= value;
762
_lastObjectWithToolTip.
Target
= value;
800
_lastChecked.
Target
= value;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (1)
2825
wr.
Target
= item;
src\Framework\System\Windows\Data\BindingGroup.cs (1)
1759
_itemWR.
Target
= bindingExpression.SourceItem;
System (5)
net\System\Net\_FtpControlStream.cs (1)
81
m_Credentials.
Target
= value;
net\System\Net\_PooledStream.cs (3)
129
m_Owner.
Target
= value;
285
m_Owner.
Target
= null;
301
m_Owner.
Target
= newOwner;
regex\system\text\regularexpressions\Regex.cs (1)
1588
_ref.
Target
= obj;
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (1)
117
this.activeManagedFocusScope.
Target
= value;
System.Data (7)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (1)
117
this.activeManagedFocusScope.
Target
= value;
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (4)
460
_owningObject.
Target
= null;
632
_owningObject.
Target
= owningObject;
723
_owningObject.
Target
= null; // NOTE: doing this and checking for InternalError.PooledObjectHasOwner degrades the close by 2%
746
_owningObject.
Target
= newOwner;
fx\src\data\System\Data\ProviderBase\DbReferenceCollection.cs (1)
32
_weak.
Target
= target;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (1)
372
_owner.
Target
= value;
System.Data.Entity (2)
System\Data\Metadata\MetadataCache.cs (2)
454
_weakReferenceItemCollection.
Target
= itemCollection;
572
_entryTokenReference.
Target
= entryToken;
System.Drawing (1)
commonui\System\Drawing\Advanced\SystemColorTracker.cs (1)
62
list[index].
Target
= obj;
System.Runtime.DurableInstancing (1)
System\Runtime\DurableInstancing\InstanceStore.cs (1)
292
ownerRef.
Target
= owner;
System.ServiceModel (4)
System\ServiceModel\Dispatcher\EndpointAddressMessageFilter.cs (2)
294
this.processorPool.
Target
= p.Next;
324
this.processorPool.
Target
= context;
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (1)
687
this.processorPool.
Target
= pool;
System\ServiceModel\Dispatcher\QueryMatcher.cs (1)
606
this.processorPool.
Target
= pool;
System.Transactions (2)
System\Transactions\InternalTransaction.cs (1)
544
weakRef.
Target
= null;
System\Transactions\Oletx\OleTxTransaction.cs (1)
1578
localTxWeakRef.
Target
= null;
System.Windows.Forms (2)
winforms\Managed\System\WinForms\BindingContext.cs (1)
379
wRef.
Target
= bindingManagerBase;
winforms\Managed\System\WinForms\Command.cs (1)
114
cmd.
Target
= null;
System.Workflow.Runtime (1)
Tracking.cs (1)
158
weakref.
Target
= listener;
WindowsBase (1)
Base\System\Windows\Threading\Dispatcher.cs (1)
171
_possibleDispatcher.
Target
= dispatcher;
392 references to Target
mscorlib (14)
system\diagnostics\eventing\eventsource.cs (6)
481
EventSource eventSource = eventSourceRef.
Target
as EventSource;
3028
EventSource eventSource = eventSourceRef.
Target
as EventSource;
4468
EventSource es = esRef.
Target
as EventSource;
4489
EventSource eventSource = eventSourceRef.
Target
as EventSource;
4541
EventSource eventSource = eventSourceRef.
Target
as EventSource;
4615
EventSource eventSource = eventSourceRef.
Target
as EventSource;
system\runtime\remoting\identityholder.cs (5)
122
if ((null != wr) && (null == wr.
Target
))
238
return((Identity) wr.
Target
);
251
return((Identity) wr.
Target
);
547
idInTable = (Identity) wr.
Target
;
743
id = (Identity) wr.
Target
;
system\security\policy\evidence.cs (1)
1272
Evidence cloneOrigin = m_cloneOrigin != null ? m_cloneOrigin.
Target
as Evidence : null;
system\security\policy\hash.cs (1)
479
rawData = m_rawData.
Target
as byte[];
system\weakreference.cs (1)
117
info.AddValue("TrackedObject",
Target
, typeof(Object));
PresentationCore (60)
Core\CSharp\MS\Internal\Automation\ElementProxy.cs (2)
288
result = peer.ElementProxyWeakReference.
Target
as ElementProxy;
319
AutomationPeer peer = (AutomationPeer)((WeakReference)_peer).
Target
;
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (1)
2162
if(value.
Target
as ElementProxy != null)
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (5)
664
object element = weakReference.
Target
;
693
object element = weakReference.
Target
;
756
IInputElement accessKeyElement = (cachedElementWeakRef != null) ? (IInputElement)cachedElementWeakRef.
Target
: null;
780
if (currentElementWeakRef.
Target
== accessKeyElement)
800
IInputElement currentElement = (IInputElement)currentElementWeakRef.
Target
;
Core\CSharp\System\Windows\Input\Command\CanExecuteChangedEventManager.cs (6)
419
get { return (_originalHandler != null) ? (EventHandler<EventArgs>)_originalHandler.
Target
: null; }
424
return (_source != null && (ICommand)_source.
Target
== source) &&
425
(_originalHandler != null && (EventHandler<EventArgs>)_originalHandler.
Target
== handler);
432
ICommand source = (ICommand)_source.
Target
;
465
sender = _source.
Target
;
469
EventHandler<EventArgs> handler = (EventHandler<EventArgs>)_originalHandler.
Target
;
Core\CSharp\System\Windows\Input\MouseDevice.cs (2)
292
IInputElement rawMouseOver = (IInputElement)_rawMouseOver.
Target
;
1584
IInputElement rawMouseOver = (_rawMouseOver != null) ? (IInputElement)_rawMouseOver.
Target
: null;
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
1198
UIElement element = _manipulatingElement.
Target
as UIElement;
Core\CSharp\System\Windows\Interop\HwndSource.cs (2)
3097
HwndSource source = this.
Target
as HwndSource;
3147
HwndSource source = this.
Target
as HwndSource;
Core\CSharp\System\Windows\LayoutManager.cs (3)
614
e = (EventHandler)(item.
Target
);
717
peer = (AutomationPeer)(item.
Target
);
771
peer = (AutomationPeer)(item.
Target
);
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (4)
81
Debug.Assert(_dependencyObject.
Target
!= null);
168
DependencyObject d = (DependencyObject)_dependencyObject.
Target
;
321
DependencyObject d = (DependencyObject)_dependencyObject.
Target
;
360
object target = _dependencyObject.
Target
;
Core\CSharp\System\Windows\Media\Animation\Generated\ColorIndependentAnimationStorage.cs (1)
53
DependencyObject dobj = ((DependencyObject) _dependencyObject.
Target
);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleIndependentAnimationStorage.cs (1)
53
DependencyObject dobj = ((DependencyObject) _dependencyObject.
Target
);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixIndependentAnimationStorage.cs (1)
53
DependencyObject dobj = ((DependencyObject) _dependencyObject.
Target
);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DIndependentAnimationStorage.cs (1)
53
DependencyObject dobj = ((DependencyObject) _dependencyObject.
Target
);
Core\CSharp\System\Windows\Media\Animation\Generated\PointIndependentAnimationStorage.cs (1)
53
DependencyObject dobj = ((DependencyObject) _dependencyObject.
Target
);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionIndependentAnimationStorage.cs (1)
53
DependencyObject dobj = ((DependencyObject) _dependencyObject.
Target
);
Core\CSharp\System\Windows\Media\Animation\Generated\RectIndependentAnimationStorage.cs (1)
53
DependencyObject dobj = ((DependencyObject) _dependencyObject.
Target
);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeIndependentAnimationStorage.cs (1)
53
DependencyObject dobj = ((DependencyObject) _dependencyObject.
Target
);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DIndependentAnimationStorage.cs (1)
53
DependencyObject dobj = ((DependencyObject) _dependencyObject.
Target
);
Core\CSharp\System\Windows\Media\Animation\IndependentAnimationStorage.cs (2)
105
DependencyObject d = (DependencyObject)_dependencyObject.
Target
;
207
DependencyObject d = (DependencyObject)_dependencyObject.
Target
;
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (1)
636
Clock clock = (Clock)instance.
Target
;
Core\CSharp\System\Windows\Media\Animation\WeakRefEnumerator.cs (1)
140
_current = (T)currentRef.
Target
;
Core\CSharp\System\Windows\Media\EventProxy.cs (1)
117
IInvokable invokable = (IInvokable)target.
Target
;
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1628
BitmapDecoder bitmapDecoder = weakRef.
Target
as BitmapDecoder;
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (3)
392
LateBoundBitmapDecoder decoder = decoderReference.
Target
as LateBoundBitmapDecoder;
441
LateBoundBitmapDecoder decoder = decoderReference.
Target
as LateBoundBitmapDecoder;
497
LateBoundBitmapDecoder decoder = decoderReference.
Target
as LateBoundBitmapDecoder;
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (3)
843
BitmapFrameDecode clone = this.
Target
as BitmapFrameDecode;
856
BitmapFrameDecode clone = this.
Target
as BitmapFrameDecode;
869
BitmapFrameDecode clone = this.
Target
as BitmapFrameDecode;
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (1)
261
BitmapImage bitmapImage = (bitmapWeakReference.
Target
as BitmapImage);
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (3)
2047
BitmapSource bitmapSource = this.
Target
as BitmapSource;
2060
BitmapSource bitmapSource = this.
Target
as BitmapSource;
2073
BitmapSource bitmapSource = this.
Target
as BitmapSource;
Core\CSharp\System\Windows\Media\Imaging\ImagingCache.cs (1)
96
if ((weakRef != null) && (weakRef.
Target
== null))
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (1)
1443
SafeMediaHandle nativeMedia = (SafeMediaHandle)_nativeMedia.
Target
;
Shared\MS\Internal\AppDomainShutdownMonitor.cs (5)
37
Debug.Assert(listener.
Target
!= null);
38
Debug.Assert(listener.
Target
is IAppDomainShutdownListener);
51
Debug.Assert(listener.
Target
== null || listener.
Target
is IAppDomainShutdownListener);
73
IAppDomainShutdownListener listener = value.
Target
as IAppDomainShutdownListener;
Shared\MS\Internal\SafeSecurityHelper.cs (2)
481
object target1 =
Target
;
482
object target2 = weakRef.
Target
;
PresentationFramework (81)
src\Framework\MS\Internal\Data\CollectionViewGroupInternal.cs (2)
562
weakRef.
Target
== subgroup)
591
return (weakRef.
Target
as CollectionViewGroupInternal);
src\Framework\MS\Internal\Data\ObjectRef.cs (1)
663
return (_element != null) ? _element.
Target
: _object;
src\Framework\MS\Internal\Data\ValueTable.cs (3)
118
value = wr.
Target
;
321
get { return _item.
Target
; }
326
get { return (PropertyDescriptor)_descriptor.
Target
; }
src\Framework\MS\Internal\Data\ViewManager.cs (4)
167
get { return _weakRef.
Target
; }
343
get { return (ViewTable)_wrViewTable.
Target
; }
399
object target = _callbackTarget.
Target
;
408
object context = (wrContext != null)? wrContext.
Target
: _context;
src\Framework\MS\Internal\Data\XDeferredAxisSource.cs (1)
64
object component = _component.
Target
;
src\Framework\MS\Internal\Ink\HighContrastHelper.cs (1)
163
HighContrastCallback highContrastCallback = weakRef.
Target
as HighContrastCallback;
src\Framework\MS\Internal\PtsHost\BreakRecordTable.cs (9)
97
documentPage = pageRef.
Target
as FlowDocumentPage;
294
_breakRecords[pageNumber].DocumentPage.
Target
!= null &&
295
_breakRecords[pageNumber].DocumentPage.
Target
!= entry.DocumentPage.
Target
)
297
((FlowDocumentPage)_breakRecords[pageNumber].DocumentPage.
Target
).Dispose();
389
if (pageRef != null && pageRef.
Target
!= null)
391
((FlowDocumentPage)pageRef.
Target
).Dispose();
416
if (pageRef != null && pageRef.
Target
!= null)
418
((FlowDocumentPage)pageRef.
Target
).Dispose();
src\Framework\MS\Internal\PtsHost\PageBreakRecord.cs (1)
152
ptsContext = _ptsContext.
Target
as PtsContext;
src\Framework\MS\Internal\PtsHost\PageVisual.cs (4)
119
IContentHost host = _owner.
Target
as IContentHost;
132
IContentHost host = _owner.
Target
as IContentHost;
147
IContentHost host = _owner.
Target
as IContentHost;
161
IContentHost host = _owner.
Target
as IContentHost;
src\Framework\MS\Internal\PtsHost\PtsCache.cs (1)
367
PtsContext ptsContext = _contextPool[index].Owner.
Target
as PtsContext;
src\Framework\MS\Internal\WeakHashtable.cs (1)
210
get { return _weakRef.
Target
; }
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (1)
278
ElementProxy provider = weakRefEP.
Target
as ElementProxy;
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
877
get { return (_item == null) ? null : _item.
Target
; }
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
529
ElementProxy provider = weakRefEP.
Target
as ElementProxy;
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (3)
616
return (iwr != null) ? iwr.
Target
: _item;
639
object item = iwr.
Target
;
661
if (!Object.ReferenceEquals(item, iwr.
Target
))
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (3)
460
ElementProxy provider = weakRefEP.
Target
as ElementProxy;
713
ElementProxy proxy = weakRef.
Target
as ElementProxy;
737
ElementProxy proxy = weakRef.
Target
as ElementProxy;
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (1)
283
return (DataGrid)_owner.
Target
;
src\Framework\System\Windows\Controls\Grid.cs (1)
3154
extData.TempDefinitions = (DefinitionBase[])tempDefinitionsWeakRef.
Target
;
src\Framework\System\Windows\Controls\ItemCollection.cs (1)
1509
get { return (DependencyObject)_modelParent.
Target
; }
src\Framework\System\Windows\Controls\ListBox.cs (1)
917
return weakReference.
Target
;
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
891
strongReference = weakReference.
Target
;
src\Framework\System\Windows\Controls\PopupControlService.cs (4)
659
IInputElement e = (IInputElement)_lastMouseDirectlyOver.
Target
;
697
DependencyObject o = (DependencyObject)_lastMouseOverWithToolTip.
Target
;
735
DependencyObject o = (DependencyObject)_lastObjectWithToolTip.
Target
;
773
DependencyObject o = (DependencyObject)_lastChecked.
Target
;
src\Framework\System\Windows\Controls\RadioButton.cs (2)
124
object element = weakReference.
Target
;
151
RadioButton rb = weakReference.
Target
as RadioButton;
src\Framework\System\Windows\Data\BindingExpression.cs (4)
316
return _ctxElement.
Target
as DependencyObject;
328
return (wr == null) ? null : (CollectionViewSource)wr.
Target
;
593
INotifyDataErrorInfo dataErrorValue = (dataErrorWR == null) ? null : dataErrorWR.
Target
as INotifyDataErrorInfo;
2312
INotifyDataErrorInfo dataErrorValue = (dataErrorWR == null) ? null : dataErrorWR.
Target
as INotifyDataErrorInfo;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (2)
1971
DependencyObject result = _targetElement.
Target
as DependencyObject;
2854
return wr.
Target
;
src\Framework\System\Windows\Data\BindingGroup.cs (8)
834
!ItemsControl.EqualsEx(dataContextItem, itemReference.
Target
))
861
indei = _itemsRW[i].
Target
as INotifyDataErrorInfo;
878
IEditableObject ieo = newItems[i].
Target
as IEditableObject;
888
indei = newItems[i].
Target
as INotifyDataErrorInfo;
1292
object item = wr.
Target
;
1302
if (ItemsControl.EqualsEx(item, list[i].
Target
))
1767
get { return _itemWR.
Target
; }
1966
public object Item { get { return _itemReference.
Target
; } }
src\Framework\System\Windows\Data\CollectionViewSource.cs (1)
1245
CollectionViewSource parent = (CollectionViewSource)_parent.
Target
;
src\Framework\System\Windows\Documents\PageContent.cs (2)
385
FixedPage c = (FixedPage)_pageRef.
Target
;
597
p = (FixedPage)_pageRef.
Target
;
src\Framework\System\Windows\Documents\TextElementCollectionHelper.cs (2)
47
ParentCollectionPair pair = (ParentCollectionPair)_cleanParentList[i].
Target
;
141
ParentCollectionPair pair = (ParentCollectionPair)_cleanParentList[i].
Target
;
src\Framework\System\Windows\Documents\TextStore.cs (1)
4062
return (TextEditor)this.
Target
;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
111
DependencyObject activeElement = weakRef.
Target
as DependencyObject;
134
DependencyObject activeElement = weakRef.
Target
as DependencyObject;
3625
object item = _list[i].
Target
;
3652
object item = _list[i].
Target
;
src\Framework\System\Windows\Interop\HwndHost.cs (1)
1433
HwndHost hwndHost = this.
Target
as HwndHost;
src\Framework\System\Windows\Media\Animation\Storyboard.cs (1)
1993
clock = clockReference.
Target
as Clock;
src\Framework\System\Windows\ResourceDictionary.cs (1)
2411
? (DependencyObject)_inheritanceContext.
Target
src\Framework\System\Windows\ResourceReferenceExpression.cs (1)
531
ResourceReferenceExpression expression = (ResourceReferenceExpression)
Target
;
src\Framework\System\Windows\ThemeDictionaryExtension.cs (3)
147
if ((ResourceDictionary)info.DictionaryReference.
Target
== dictionary)
220
if (info.DictionaryReference.
Target
== dictionary)
255
ResourceDictionary dictionary = (ResourceDictionary)info.DictionaryReference.
Target
;
src\Framework\System\Windows\Window.cs (2)
7389
_currentPanningTarget.
Target
!= e.OriginalSource)
7456
if (originalSource == _currentPanningTarget.
Target
)
System (32)
compmod\system\componentmodel\design\serialization\MemberRelationshipService.cs (3)
85
return new MemberRelationship(retVal.Owner.
Target
, retVal.Member);
147
object owner1 = (re1.Owner.IsAlive ? re1.Owner.
Target
: null);
148
object owner2 = (re2.Owner.IsAlive ? re2.Owner.
Target
: null);
compmod\system\componentmodel\TypeDescriptor.cs (3)
557
if (r.IsAlive && r.
Target
== secondary)
1312
object secondary = weakRef.
Target
;
3139
object secondaryItem = weakRef.
Target
;
compmod\system\diagnostics\Switch.cs (2)
72
Switch s = ((Switch)switches[i].
Target
);
269
Switch swtch = ((Switch) switches[i].
Target
);
compmod\system\diagnostics\TraceSource.cs (2)
56
TraceSource tracesource = ((TraceSource)tracesources[i].
Target
);
162
TraceSource tracesource = ((TraceSource) tracesources[i].
Target
);
misc\WeakHashtable.cs (3)
146
x = wX.
Target
;
155
y = wY.
Target
;
198
if (o == this || (IsAlive && object.ReferenceEquals(o,
Target
)))
net\System\Net\_FtpControlStream.cs (1)
72
return (NetworkCredential) m_Credentials.
Target
;
net\System\Net\_PooledStream.cs (4)
122
return weakref.
Target
;
272
if (null != m_Owner && null != m_Owner.
Target
)
275
if (null == m_Owner || m_Owner.
Target
!= expectedOwner)
298
if (null != m_Owner.
Target
)
net\System\Net\_TimerThread.cs (4)
235
if (weakQueue == null || (queue = (TimerQueue) weakQueue.
Target
) == null) {
238
if (weakQueue == null || (queue = (TimerQueue) weakQueue.
Target
) == null) {
248
if (((WeakReference) pair.Value).
Target
== null) {
674
TimerQueue queue = (TimerQueue) node.Value.
Target
;
net\System\Net\ServicePointManager.cs (4)
165
servicePoint = (ServicePoint)servicePointReference.
Target
;
799
servicePoint = (ServicePoint)servicePointReference.
Target
;
863
servicePoint = (ServicePoint)servicePointReference.
Target
;
904
servicePoint = (ServicePoint)servicePointReference.
Target
;
regex\system\text\regularexpressions\Regex.cs (1)
1572
Object obj = _ref.
Target
;
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (2)
189
((Component)this.weakParentProcess.
Target
).Site != null &&
190
((Component)this.weakParentProcess.
Target
).Site.DesignMode)) {
sys\system\io\ports\SerialStream.cs (3)
1858
SerialStream stream = (SerialStream) streamWeakReference.
Target
;
1884
SerialStream stream = (SerialStream) streamWeakReference.
Target
;
1901
SerialStream stream = (SerialStream) streamWeakReference.
Target
;
System.Activities (1)
System\Activities\ActivityBuilder.cs (1)
272
object target = this.targetObject.
Target
;
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SqlWorkflowInstanceStoreLock.cs (1)
202
InstanceHandle instanceHandle = this.lockOwnerInstanceHandle.
Target
as InstanceHandle;
System.Activities.Presentation (19)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ResolverCache.cs (1)
43
return value.
Target
as ResolverResult;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (5)
105
return this.activeManagedFocusScope.
Target
as UIElement;
343
UIElement curScope = (UIElement)curRef.
Target
;
368
UIElement curTarget = (UIElement)curRef.
Target
;
405
if (FocusScopeManager.GetFocusScopePriority((UIElement)curRef.
Target
) >= priority)
429
if (!curRef.IsAlive || curRef.
Target
== scope)
System.Activities.Presentation\System\Activities\Presentation\DefaultCommandExtensionCallback.cs (1)
133
return this.ownerReference.
Target
as DesignerView;
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
30
return activeDesignerViewReference.
Target
as DesignerView;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (2)
751
modelItem = (ModelItem)mappedModelItem.
Target
;
985
ModelItem modelItem = weakReference.
Target
as ModelItem;
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (7)
48
object k = key.
Target
;
183
KeyValuePair<K, V> kv = new KeyValuePair<K, V>((K)item.Key.
Target
, item.Value);
210
object k = item.Key.
Target
;
310
if (obj != this && (!IsAlive || !obj.Equals(
Target
)))
341
object ref1 = x.
Target
;
346
object ref2 = y.
Target
;
391
if (_key.
Target
== null)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1751
DesignerView designerView = this.reference.
Target
as DesignerView;
System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
778
ImportDesigner importDesigner = this.reference.
Target
as ImportDesigner;
System.AddIn (4)
System\Addin\Hosting\AddInControllerImpl.cs (4)
113
Object o = current._HAV.
Target
;
200
Object hav = _havReference.
Target
;
238
Object hav = _havReference.
Target
;
321
Object addin = _havReference.
Target
;
System.Core (2)
Microsoft\Scripting\Actions\ExpandoClass.cs (1)
69
ExpandoClass klass = infos[i].
Target
as ExpandoClass;
System\Security\Cryptography\BCryptHashAlgorithm.cs (1)
39
algorithmHandle = m_algorithmHandles[handleKey].
Target
as SafeBCryptAlgorithmHandle;
System.Data (51)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ResolverCache.cs (1)
43
return value.
Target
as ResolverResult;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (5)
105
return this.activeManagedFocusScope.
Target
as UIElement;
343
UIElement curScope = (UIElement)curRef.
Target
;
368
UIElement curTarget = (UIElement)curRef.
Target
;
405
if (FocusScopeManager.GetFocusScopePriority((UIElement)curRef.
Target
) >= priority)
429
if (!curRef.IsAlive || curRef.
Target
== scope)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DefaultCommandExtensionCallback.cs (1)
133
return this.ownerReference.
Target
as DesignerView;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
30
return activeDesignerViewReference.
Target
as DesignerView;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (2)
751
modelItem = (ModelItem)mappedModelItem.
Target
;
985
ModelItem modelItem = weakReference.
Target
as ModelItem;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (7)
48
object k = key.
Target
;
183
KeyValuePair<K, V> kv = new KeyValuePair<K, V>((K)item.Key.
Target
, item.Value);
210
object k = item.Key.
Target
;
310
if (obj != this && (!IsAlive || !obj.Equals(
Target
)))
341
object ref1 = x.
Target
;
346
object ref2 = y.
Target
;
391
if (_key.
Target
== null)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1751
DesignerView designerView = this.reference.
Target
as DesignerView;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ImportDesigner.xaml.cs (1)
778
ImportDesigner importDesigner = this.reference.
Target
as ImportDesigner;
fx\src\data\System\Data\DataTableReaderListener.cs (3)
79
DataTableReader reader = (DataTableReader) readerWeak.
Target
;
90
DataTableReader reader = (DataTableReader) readerWeak.
Target
;
100
DataTableReader reader = (DataTableReader) readerWeak.
Target
;
fx\src\data\System\Data\DataViewListener.cs (5)
31
DataView dv = (DataView)_dvWeak.
Target
;
41
DataView dv = (DataView)_dvWeak.
Target
;
51
DataView dv = (DataView)_dvWeak.
Target
;
64
DataView dv = (DataView)_dvWeak.
Target
;
74
DataView dv = (DataView)_dvWeak.
Target
;
fx\src\data\System\Data\Odbc\OdbcCommand.cs (3)
92
IDisposable reader = (IDisposable) this.weakDataReaderReference.
Target
;
105
reader = (OdbcDataReader)this.weakDataReaderReference.
Target
;
557
object target = weakDataReaderReference.
Target
;
fx\src\data\System\Data\Odbc\OdbcConnection.cs (3)
176
result = ((OdbcTransaction)weakTransaction.
Target
);
332
IDisposable transaction = weak.
Target
as OdbcTransaction;
534
OdbcTransaction weak = (weakTransaction.
Target
as OdbcTransaction);
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (2)
159
result = ((OleDbTransaction)weakTransaction.
Target
);
708
OleDbTransaction head = (OleDbTransaction) this.weakTransaction.
Target
;
fx\src\data\System\Data\OleDb\OleDbTransaction.cs (3)
240
OleDbTransaction transaction = (OleDbTransaction) _nestedTransaction.
Target
;
312
OleDbTransaction transaction = (OleDbTransaction) _nestedTransaction.
Target
;
339
OleDbTransaction current = (OleDbTransaction) head._nestedTransaction.
Target
;
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (4)
294
return _owningObject.
Target
;
708
if (null != _owningObject.
Target
) {
712
else if (_owningObject.
Target
!= expectedOwner) {
743
if (null != _owningObject.
Target
) {
fx\src\data\System\Data\ProviderBase\DbReferenceCollection.cs (1)
55
return (_tag == 0 ? null : _weak.
Target
);
fx\src\data\System\Data\Selection.cs (1)
184
get { return (IFilter)((null != rowFilter) ? rowFilter.
Target
: null); }
fx\src\data\System\Data\SqlClient\sqlinternaltransaction.cs (3)
154
else if (null == _parent.
Target
) {
191
result = (SqlTransaction)_parent.
Target
;
511
SqlTransaction parent = (SqlTransaction) _parent.
Target
;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (2)
356
|| (1 == _activateCount && _owner.IsAlive && _owner.
Target
!= null)
364
Debug.Assert(value == null || !_owner.IsAlive || ((value is SqlDataReader) && (((SqlDataReader)value).Command == _owner.
Target
)), "Should not be changing the owner of an owned stateObj");
fx\src\data\System\NewXml\XPathNodePointer.cs (2)
957
XPathNodePointer xp1 = this.Clone((DataDocumentXPathNavigator)(this._owner.
Target
));
958
XPathNodePointer xp2 = other.Clone((DataDocumentXPathNavigator)(other._owner.
Target
));
System.Data.Entity (4)
System\Data\Metadata\MetadataCache.cs (2)
522
object entryToken = _entryTokenReference.
Target
;
523
ItemCollection itemCollection = (ItemCollection)_weakReferenceItemCollection.
Target
;
System\Data\Objects\ObjectViewListener.cs (2)
131
IObjectView view = (IObjectView)_viewWeak.
Target
;
144
IObjectView view = (IObjectView)_viewWeak.
Target
;
System.Drawing (5)
commonui\System\Drawing\Advanced\SystemColorTracker.cs (4)
61
Debug.Assert(list[index].
Target
== null, "Trying to reuse a weak reference that isn't broken yet: list[" + index + "], length =" + list.Length);
81
while (left < length && list[left].
Target
!= null)
83
while (right >= 0 && list[right].
Target
== null)
138
ISystemColorTracker tracker = (ISystemColorTracker) list[i].
Target
;
misc\ClientUtils.cs (1)
467
return weakHolder.
Target
;
System.Net (7)
net\PeerToPeer\Collaboration\Peer.cs (3)
1058
m_peerWeakReference.
Target
.GetHashCode()
1342
peer = m_peerWeakReference.
Target
as Peer;
1391
Peer peer = m_peerWeakReference.
Target
as Peer;
net\PeerToPeer\PeerNameResolver.cs (4)
180
m_PeerNameResolverWeakReference.
Target
.GetHashCode()
355
parent = m_PeerNameResolverWeakReference.
Target
as PeerNameResolver;
379
parent = m_PeerNameResolverWeakReference.
Target
as PeerNameResolver;
429
PeerNameResolver parent = m_PeerNameResolverWeakReference.
Target
as PeerNameResolver;
System.Runtime.DurableInstancing (10)
System\Runtime\DurableInstancing\InstanceStore.cs (10)
164
if (!this.owners.TryGetValue(owner.InstanceOwnerId, out ownerReference) || !object.ReferenceEquals(ownerReference.
Target
, owner))
203
if (!this.owners.TryGetValue(owner.InstanceOwnerId, out ownerReference) || !object.ReferenceEquals(ownerReference.
Target
, owner))
257
return this.owners.Values.Select(weakReference => (InstanceOwner)weakReference.
Target
).Where(owner => owner != null).ToArray();
271
if (!this.owners.TryGetValue(owner.InstanceOwnerId, out ownerReference) || !object.ReferenceEquals(ownerReference.
Target
, owner))
288
owner = (InstanceOwner)ownerRef.
Target
;
318
if (ownerRef.
Target
== null)
338
Fx.Assert(object.ReferenceEquals(this.owners[owner.InstanceOwnerId].
Target
, owner), "How did multiple of the same owner become simultaneously active?");
352
Fx.Assert(object.ReferenceEquals(this.owners[owner.InstanceOwnerId].
Target
, owner), "How did multiple instances of the same owner become simultaneously active?");
369
Fx.Assert(object.ReferenceEquals(this.owners[owner.InstanceOwnerId].
Target
, owner), "How did multiple instances of the same owner become simultaneously active?");
392
Fx.Assert(object.ReferenceEquals(this.owners[owner.InstanceOwnerId].
Target
, owner), "How did multiple instances of the same owner become simultaneously active in RemoveHandleFromEvents?");
System.ServiceModel (9)
System\ServiceModel\Channels\UriPrefixTable.cs (1)
443
return this.weakData.
Target
as TData;
System\ServiceModel\Diagnostics\PerformanceCountersBase.cs (1)
140
return (CounterSetInstance)wr.
Target
;
System\ServiceModel\Dispatcher\EndpointAddressMessageFilter.cs (3)
286
if (this.processorPool.
Target
!= null)
290
object o = this.processorPool.
Target
;
323
context.Next = this.processorPool.
Target
as EndpointAddressProcessor;
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (2)
299
ProcessorPool pool = this.processorPool.
Target
as ProcessorPool;
683
ProcessorPool pool = this.processorPool.
Target
as ProcessorPool;
System\ServiceModel\Dispatcher\QueryMatcher.cs (2)
482
QueryProcessorPool pool = this.processorPool.
Target
as QueryProcessorPool;
602
QueryProcessorPool pool = this.processorPool.
Target
as QueryProcessorPool;
System.ServiceModel.Internals (4)
System\Runtime\Collections\HopperCache.cs (4)
124
value = weakRef.
Target
;
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 (15)
System\Transactions\InternalTransaction.cs (1)
542
if ( weakRef.
Target
!= null )
System\Transactions\Oletx\OleTxTransaction.cs (2)
1551
RealOletxTransaction realOletxTransaction = localTxWeakRef.
Target
as RealOletxTransaction;
1611
realOletxTransaction = this.weakRealTransaction.
Target
as RealOletxTransaction;
System\Transactions\Oletx\OletxTransactionManager.cs (1)
1021
tx = (Transaction)txWeakRef.
Target
;
System\Transactions\Transaction.cs (1)
144
defaultContext = (SafeIUnknown)contextData.WeakDefaultComContext.
Target
;
System\Transactions\TransactionManager.cs (3)
98
Transaction tx = (Transaction)weakRef.
Target
;
623
Transaction tx = weakRef.
Target
as Transaction;
653
tx = weakRef.
Target
as Transaction;
System\Transactions\TransactionTable.cs (7)
314
nextBucketSet = (BucketSet)nextSetWeak.
Target
;
362
BucketSet oldSet = (BucketSet)oldNextSetWeak.
Target
;
446
nextBucketSet = (BucketSet)nextWeakSet.
Target
;
458
nextBucketSet = (BucketSet)nextWeakSet.
Target
;
501
nextBucketSet = (BucketSet)nextWeakSet.
Target
;
538
abortingBucketSets = (BucketSet)abortingSetsWeak.
Target
;
615
currentBucket = (Bucket)nextWeakBucket.
Target
;
System.Windows.Forms (26)
misc\GDI\DeviceContext.cs (1)
533
selectedFont = g.font.
Target
as WindowsFont;
misc\WeakHashtable.cs (3)
146
x = wX.
Target
;
155
y = wY.
Target
;
198
if (o == this || (IsAlive && object.ReferenceEquals(o,
Target
)))
winforms\Managed\System\WinForms\Application.cs (1)
2655
return activatingControlRef.
Target
as Control;
winforms\Managed\System\WinForms\AxHost.cs (2)
6131
return(Control) pRef.
Target
;
6135
return(AxContainer) pContainer.
Target
;
winforms\Managed\System\WinForms\BindingContext.cs (4)
270
return wRef.
Target
== keyTarget.wRef.
Target
&& dataMember == keyTarget.dataMember;
338
bindingManagerBase = (BindingManagerBase) wRef.
Target
;
410
if (wRef.
Target
== null) {
winforms\Managed\System\WinForms\Command.cs (3)
71
if (null == cmds[icmd].
Target
) goto FindSlotComplete;
81
if (null == cmds[icmd] || null == cmds[icmd].
Target
)
140
object target =
Target
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
104
return pictureRef.
Target
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (2)
191
return weakObjRef.
Target
;
474
long[] newTypeInfoVersions = GetTypeInfoVersions(weakObjRef.
Target
);
winforms\Managed\System\WinForms\Control.cs (2)
6698
Object reference = cmd.
Target
;
13236
Object reference = cmd.
Target
;
winforms\Managed\System\WinForms\MenuItem.cs (1)
995
return (MenuItem)weakRef.
Target
;
winforms\Managed\System\WinForms\NativeWindow.cs (4)
669
if (weakThisPtr.IsAlive && weakThisPtr.
Target
!= null) {
802
if (weakThisPtr.IsAlive && weakThisPtr.
Target
!= null) {
1162
if (weakThisPtr.IsAlive && weakThisPtr.
Target
!= null) {
1360
bool finalizing = (!weakThisPtr.IsAlive || weakThisPtr.
Target
== null);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
7298
MouseHook control = (MouseHook)reference.
Target
;
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (1)
57
return destinationThreadRef.
Target
as Thread;
System.Workflow.Runtime (4)
Tracking.cs (3)
134
listener = weakref.
Target
as TrackingListener;
224
if (null == kvp.Value.
Target
)
288
listener = wr.
Target
as TrackingListener;
WorkflowRuntime.cs (1)
1546
WorkflowRuntime runtime = wr.
Target
as WorkflowRuntime;
System.Xml (4)
System\Xml\Dom\XmlDocument.cs (2)
207
if ((XmlElement)(elemRef.
Target
) == elem)
771
XmlElement elem = (XmlElement)elemRef.
Target
;
System\Xml\Dom\XmlElementList.cs (2)
244
XmlElementListListener listener = (XmlElementListListener)this.listener.
Target
;
318
XmlElementList el = (XmlElementList)this.elemList.
Target
;
System.Xml.Linq (3)
System\Xml\Linq\XLinq.cs (3)
457
ns = (refNamespace != null) ? (XNamespace) refNamespace.
Target
: null;
480
if (r == null || (ns = (XNamespace) r.
Target
) == null)
502
XNamespace ns = (XNamespace) refOld.
Target
;
WindowsBase (36)
Base\MS\Internal\ShutDownListener.cs (2)
129
Dispatcher dispatcher = (Dispatcher)_dispatcherWR.
Target
;
151
object target =
Target
;
Base\MS\Internal\TraceLevelStore.cs (2)
141
object s1 = (wr != null) ? wr.
Target
: this._element;
143
object s2 = (wr != null) ? wr.
Target
: that._element;
Base\MS\Internal\WeakEventTable.cs (3)
532
get { return ((WeakReference)_source).
Target
; }
566
object s1 = (wr != null) ? wr.
Target
: this._source;
568
object s2 = (wr != null) ? wr.
Target
: ek._source;
Base\MS\Internal\WeakReferenceKey.cs (1)
34
get { return (T)_item.
Target
; }
Base\System\Collections\ObjectModel\WeakReadOnlyCollection.cs (5)
53
get { return (T)list[index].
Target
; }
90
get { return (T)list[index].
Target
; }
225
get { return (T)list[index].
Target
; }
284
newList.Add((T)list[i].
Target
);
306
return (T)wr.
Target
;
Base\System\Windows\DependentList.cs (8)
163
return (DependencyObject)_wrDO.
Target
;
179
return (Expression)_wrEX.
Target
;
199
if(_wrEX.
Target
!= d._wrEX.
Target
)
208
if(_wrDO.
Target
!= d._wrDO.
Target
)
233
Expression ex = (Expression)_wrEX.
Target
;
238
DependencyObject DO = (DependencyObject)_wrDO.
Target
;
Base\System\Windows\EffectiveValueEntry.cs (1)
642
return (wr != null) ? wr.
Target
: _baseValue;
Base\System\Windows\Freezable.cs (5)
595
DependencyObject currentDO = (DependencyObject)currentContext.Owner.
Target
;
1098
object owner = entry.Owner.
Target
;
1338
DependencyObject currentContext = (DependencyObject)list[i].Owner.
Target
;
1784
DependencyObject currentContext = (DependencyObject)list[i].Owner.
Target
;
2017
DependencyObject owner = (DependencyObject) context.Owner.
Target
;
Base\System\Windows\Threading\Dispatcher.cs (2)
99
dispatcher = _possibleDispatcher.
Target
as Dispatcher;
115
Dispatcher d = _dispatchers[i].
Target
as Dispatcher;
Base\System\Windows\WeakEventManager.cs (2)
537
public object Target { get { return _target.
Target
; } }
538
public Delegate Handler { get { return (_handler != null) ? (Delegate)_handler.
Target
: null; } }
Shared\MS\Internal\SafeSecurityHelper.cs (2)
481
object target1 =
Target
;
482
object target2 = weakRef.
Target
;
Shared\MS\Internal\WeakReferenceEnumerator.cs (1)
66
obj = weakRef.
Target
;
Shared\MS\Internal\WeakReferenceList.cs (1)
188
if(obj == weakRef.
Target
)
Shared\MS\Win32\HwndSubclass.cs (1)
489
HwndWrapperHook hook= _hook.
Target
as HwndWrapperHook;