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