5 writes to _snapshot
System.Data (5)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (5)
3545_snapshot = null; 4302_snapshot = null; 4682_snapshot = new Snapshot { 4749_snapshot = null; 4783_snapshot = null;
30 references to _snapshot
System.Data (30)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (30)
411Debug.Assert(null == _snapshot, "Should not change during execution of asynchronous command"); 850if (_snapshot != null) { 988if (_snapshot != null) { 1104if (_snapshot != null) { 1140if (_snapshot != null && object.ReferenceEquals(_snapshot._metadata, _metaData)) { 3542if (_snapshot != null) { 3701else if (_snapshot != null && object.ReferenceEquals(_snapshot._altMetaDataSetCollection, _altMetaDataSetCollection)) { 4681if (_snapshot == null) { 4708Debug.Assert(_snapshot == null, "Can prepare async invocation without snapshot if there is currently a snapshot"); 4726Debug.Assert(_snapshot == null && !_stateObj._asyncReadWithoutSnapshot, "Snapshot not null or async without snapshot still enabled after cleaning async state"); 4753Debug.Assert(((_snapshot != null) || (_stateObj._asyncReadWithoutSnapshot)), "Can not prepare for an async continuation if no async if setup"); 4754if (_snapshot != null) { 4755_sharedState._dataReady = _snapshot._dataReady; 4756_haltRead = _snapshot._haltRead; 4757_metaDataConsumed = _snapshot._metaDataConsumed; 4758_browseModeInfoConsumed = _snapshot._browseModeInfoConsumed; 4759_hasRows = _snapshot._hasRows; 4760_altRowStatus = _snapshot._altRowStatus; 4761_sharedState._nextColumnDataToRead = _snapshot._nextColumnDataToRead; 4762_sharedState._nextColumnHeaderToRead = _snapshot._nextColumnHeaderToRead; 4763_columnDataBytesRead = _snapshot._columnDataBytesRead; 4764_sharedState._columnDataBytesRemaining = _snapshot._columnDataBytesRemaining; 4766_metaData = _snapshot._metadata; 4767_altMetaDataSetCollection = _snapshot._altMetaDataSetCollection; 4768_tableNames = _snapshot._tableNames; 4770_currentStream = _snapshot._currentStream; 4771_currentTextReader = _snapshot._currentTextReader; 4780Debug.Assert(_snapshot != null, "Should currently have a snapshot");