Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 96a4132

Browse files
committed
Make field readonly in System.Composition.Convention
1 parent c3bd84e commit 96a4132

File tree

1 file changed

+1
-1
lines changed
  • src/System.Composition.Convention/src/Microsoft/Internal

1 file changed

+1
-1
lines changed

src/System.Composition.Convention/src/Microsoft/Internal/Lock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Microsoft.Internal
1111
{
1212
internal sealed class Lock : IDisposable
1313
{
14-
private ReaderWriterLockSlim _thisLock = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion);
14+
private readonly ReaderWriterLockSlim _thisLock = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion);
1515
private int _isDisposed = 0;
1616
public void EnterReadLock()
1717
{

0 commit comments

Comments
 (0)