wasSharp
/Collections/Specialized/ConcurrentList.cs |
@@ -53,7 +53,7 @@ |
} |
} |
|
public int Count |
public bool IsReadOnly |
{ |
get |
{ |
@@ -60,32 +60,31 @@ |
_lock.EnterReadLock(); |
try |
{ |
return _list.Count; |
return ((IList<T>)_list).IsReadOnly; |
} |
finally |
{ |
if (_lock.IsReadLockHeld) _lock.ExitReadLock(); |
} |
|
} |
} |
|
public bool IsReadOnly |
} |
|
int ICollection<T>.Count |
{ |
get |
get |
{ |
_lock.EnterReadLock(); |
try |
{ |
return ((IList<T>)_list).IsReadOnly; |
_lock.EnterReadLock(); |
try |
{ |
return _list.Count; |
} |
finally |
{ |
if (_lock.IsReadLockHeld) _lock.ExitReadLock(); |
} |
finally |
{ |
if (_lock.IsReadLockHeld) _lock.ExitReadLock(); |
} |
} |
} |
|
} |
|
public T this[int index] |
{ |
get |