1 write to _reader
mscorlib (1)
system\resources\resourcereader.cs (1)
1348
_reader
= reader;
13 references to _reader
mscorlib (13)
system\resources\resourcereader.cs (13)
1354
if (_currentName ==
_reader
._numResources - 1 || _currentName == ENUM_DONE) {
1369
if (
_reader
._resCache == null) throw new InvalidOperationException(Environment.GetResourceString("ResourceReaderIsClosed"));
1371
return
_reader
.AllocateStringForNameIndex(_currentName, out _dataPosition);
1393
if (
_reader
._resCache == null) throw new InvalidOperationException(Environment.GetResourceString("ResourceReaderIsClosed"));
1397
lock (
_reader
) { // locks should be taken in the same order as in RuntimeResourceSet.GetObject to avoid deadlock
1398
lock (
_reader
._resCache) {
1399
key =
_reader
.AllocateStringForNameIndex(_currentName, out _dataPosition); // AllocateStringForNameIndex could lock on _reader
1401
if (
_reader
._resCache.TryGetValue(key, out locator)) {
1406
value =
_reader
.GetValueForNameIndex(_currentName);
1408
value =
_reader
.LoadObject(_dataPosition);
1425
if (
_reader
._resCache == null) throw new InvalidOperationException(Environment.GetResourceString("ResourceReaderIsClosed"));
1431
return
_reader
.GetValueForNameIndex(_currentName);
1437
if (
_reader
._resCache == null) throw new InvalidOperationException(Environment.GetResourceString("ResourceReaderIsClosed"));