111 references to IsAlive
mscorlib (1)
system\diagnostics\eventing\eventsource.cs (1)
4432
if (!weakRef.
IsAlive
)
PresentationCore (3)
Core\CSharp\System\Windows\Input\Command\CanExecuteChangedEventManager.cs (2)
412
return _source == null || !_source.
IsAlive
413
|| _originalHandler == null || !_originalHandler.
IsAlive
;
Shared\MS\Internal\SafeSecurityHelper.cs (1)
257
if (weakRef.
IsAlive
)
PresentationFramework (15)
src\Framework\MS\Internal\Data\CollectionViewGroupInternal.cs (1)
616
if (weakRef == null || !weakRef.
IsAlive
)
src\Framework\MS\Internal\Data\ViewManager.cs (2)
352
_wrViewTable.
IsAlive
;
428
return (_callbackMethod != null && _callbackTarget.
IsAlive
) ||
src\Framework\MS\Internal\Ink\HighContrastHelper.cs (2)
105
if ( weakRef.
IsAlive
)
161
if ( weakRef.
IsAlive
)
src\Framework\MS\Internal\WeakHashtable.cs (1)
205
get { return _weakRef.
IsAlive
; }
src\Framework\System\Windows\Documents\TextStore.cs (1)
4047
return
IsAlive
;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (3)
109
if (weakRef != null && weakRef.
IsAlive
)
132
if (weakRef != null && weakRef.
IsAlive
)
3684
if (_list[i].
IsAlive
)
src\Framework\System\Windows\ThemeDictionaryExtension.cs (3)
140
if (!info.DictionaryReference.
IsAlive
)
212
if (!info.DictionaryReference.
IsAlive
)
246
if (!info.DictionaryReference.
IsAlive
)
src\Framework\System\Windows\Window.cs (2)
7388
!_currentPanningTarget.
IsAlive
||
7440
if ((_currentPanningTarget != null) && !_currentPanningTarget.
IsAlive
)
System (14)
compmod\system\componentmodel\design\serialization\MemberRelationshipService.cs (3)
84
if (_relationships != null && _relationships.TryGetValue(new RelationshipEntry(source), out retVal) && retVal.Owner.
IsAlive
) {
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 (1)
557
if (r.
IsAlive
&& r.Target == secondary)
misc\WeakHashtable.cs (4)
103
if (wr != null && !wr.
IsAlive
)
142
if (!wX.
IsAlive
)
151
if (!wY.
IsAlive
)
198
if (o == this || (
IsAlive
&& object.ReferenceEquals(o, Target)))
net\System\Net\_FtpControlStream.cs (1)
71
if (m_Credentials != null && m_Credentials.
IsAlive
) {
net\System\Net\_PooledStream.cs (3)
99
bool flag = (!m_ConnectionIsDoomed && ((null == weakref) || !weakref.
IsAlive
));
111
bool value = (0 >= m_PooledCount) && (null == owner || !owner.
IsAlive
);
121
if ((null != weakref) && weakref.
IsAlive
) {
net\System\Net\ServicePointManager.cs (1)
164
if (servicePointReference != null && servicePointReference.
IsAlive
) {
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (1)
188
this.weakParentProcess.
IsAlive
&&
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (6)
103
if (this.activeManagedFocusScope != null && this.activeManagedFocusScope.
IsAlive
)
341
if (curRef.
IsAlive
)
366
if (curRef.
IsAlive
)
388
if (!this.scopes[curRefIndex].
IsAlive
)
403
if (curRef.
IsAlive
)
429
if (!curRef.
IsAlive
|| curRef.Target == scope)
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (2)
255
if (!key.
IsAlive
)
310
if (obj != this && (!
IsAlive
|| !obj.Equals(Target)))
System.Data (34)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (6)
103
if (this.activeManagedFocusScope != null && this.activeManagedFocusScope.
IsAlive
)
341
if (curRef.
IsAlive
)
366
if (curRef.
IsAlive
)
388
if (!this.scopes[curRefIndex].
IsAlive
)
403
if (curRef.
IsAlive
)
429
if (!curRef.
IsAlive
|| curRef.Target == scope)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (2)
255
if (!key.
IsAlive
)
310
if (obj != this && (!
IsAlive
|| !obj.Equals(Target)))
fx\src\data\System\Data\DataViewListener.cs (1)
170
if (!listener._dvWeak.
IsAlive
) {
fx\src\data\System\Data\Odbc\OdbcCommand.cs (5)
80
if (null != this.weakDataReaderReference && !this.weakDataReaderReference.
IsAlive
) {
93
if ((null != reader) && this.weakDataReaderReference.
IsAlive
) {
106
if (this.weakDataReaderReference.
IsAlive
) {
556
if(weakDataReaderReference.
IsAlive
) {
558
if(null != target && weakDataReaderReference.
IsAlive
) {
fx\src\data\System\Data\Odbc\OdbcConnection.cs (4)
274
if ((null != weak) && !weak.
IsAlive
) {
333
if ((null != transaction) && weak.
IsAlive
) {
796
if ((null != this.weakTransaction) && this.weakTransaction.
IsAlive
) { // regression from Dispose/Finalize work
852
if ((null != this.weakTransaction) && this.weakTransaction.
IsAlive
) {
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
709
if ((null != head) && this.weakTransaction.
IsAlive
) {
fx\src\data\System\Data\OleDb\OleDbTransaction.cs (4)
180
else if ((null != _nestedTransaction) && _nestedTransaction.
IsAlive
) {
241
if ((null != transaction) && _nestedTransaction.
IsAlive
) {
313
if ((null != transaction) && _nestedTransaction.
IsAlive
) {
340
if ((null != current) && head._nestedTransaction.
IsAlive
) {
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (3)
82
bool flag = (!_connectionIsDoomed && !_cannotBePooled && !_owningObject.
IsAlive
);
272
bool value = !IsTxRootWaitingForTxEnd && (_pooledCount < 1) && !_owningObject.
IsAlive
;
559
else if (-1 == _pooledCount && !_owningObject.
IsAlive
) {
fx\src\data\System\Data\ProviderBase\DbReferenceCollection.cs (1)
43
return ((_tag != 0) && (_weak.
IsAlive
));
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (6)
355
Debug.Assert((0 == _activateCount && !_owner.
IsAlive
) // in pool
356
|| (1 == _activateCount && _owner.
IsAlive
&& _owner.Target != null)
357
|| (1 == _activateCount && !_owner.
IsAlive
), "Unknown state on TdsParserStateObject.IsOrphaned!");
358
return (0 != _activateCount && !_owner.
IsAlive
);
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");
378
return _owner.
IsAlive
;
fx\src\data\System\NewXml\XPathNodePointer.cs (1)
1504
return _owner.
IsAlive
;
System.Data.Entity (10)
System\Data\Metadata\MetadataCache.cs (10)
448
Debug.Assert(_entryTokenReference.
IsAlive
, "You must call Ensure token before you call this method");
484
Debug.Assert(_entryTokenReference.
IsAlive
== false, "Entry Token must never be alive if the entry is marked for cleanup");
491
else if (!_weakReferenceItemCollection.
IsAlive
)
499
else if (!_entryTokenReference.
IsAlive
)
537
if (_entryTokenReference.
IsAlive
)
549
Debug.Assert(_weakReferenceItemCollection.
IsAlive
, "Since the strong reference is still there, weak reference must also be alive");
554
if (_weakReferenceItemCollection.
IsAlive
)
583
Debug.Assert(_entryTokenReference.
IsAlive
, "This entry must be in use");
585
Debug.Assert(_weakReferenceItemCollection.
IsAlive
, "Weak reference to item collection must be alive");
609
return _entryTokenReference.
IsAlive
;
System.Drawing (1)
misc\ClientUtils.cs (1)
462
get { return weakHolder.
IsAlive
; }
System.ServiceModel (1)
System\ServiceModel\Diagnostics\PerformanceCountersBase.cs (1)
170
foreach (var entry in this.cache.Where(pair => !pair.Value.
IsAlive
).ToList())
System.Windows.Forms (14)
misc\GDI\DeviceContext.cs (1)
532
if (g.font != null && g.font.
IsAlive
) {
misc\WeakHashtable.cs (4)
103
if (wr != null && !wr.
IsAlive
)
142
if (!wX.
IsAlive
)
151
if (!wY.
IsAlive
)
198
if (o == this || (
IsAlive
&& object.ReferenceEquals(o, Target)))
winforms\Managed\System\WinForms\Application.cs (1)
2654
if ((activatingControlRef != null) && (activatingControlRef.
IsAlive
)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
103
if (lastManaged != null && lastManaged.Equals(managedValue) && pictureRef != null && pictureRef.
IsAlive
) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (1)
467
bool valid = weakObjRef != null && weakObjRef.
IsAlive
;
winforms\Managed\System\WinForms\MenuItem.cs (1)
994
if (weakRef != null && weakRef.
IsAlive
) {
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\WindowsFormsSynchronizationContext.cs (1)
56
if ((destinationThreadRef != null) && (destinationThreadRef.
IsAlive
)) {
System.Xml (1)
System\Xml\Dom\XmlDocument.cs (1)
203
if ( !elemRef.
IsAlive
)
WindowsBase (9)
Base\System\Windows\DependentList.cs (2)
139
if(!_wrEX.
IsAlive
)
143
if(null != _wrDO && !_wrDO.
IsAlive
)
Base\System\Windows\Freezable.cs (2)
1386
if (oldList[i].Owner.
IsAlive
)
2019
if (!context.Owner.
IsAlive
)
Base\System\Windows\Threading\Dispatcher.cs (1)
169
if(_possibleDispatcher.
IsAlive
)
Shared\MS\Internal\SafeSecurityHelper.cs (1)
257
if (weakRef.
IsAlive
)
Shared\MS\Internal\WeakReferenceList.cs (3)
186
if(weakRef.
IsAlive
)
230
if (!wr.
IsAlive
)
247
if (wr.
IsAlive
)