Skip to content

Commit

Permalink
Change PermissionSet.SyncRoot to return this instead of null (#23631)
Browse files Browse the repository at this point in the history
Signed-off-by: dotnet-bot <[email protected]>
  • Loading branch information
krwq authored and dotnet-bot committed Apr 2, 2019
1 parent 3359bd9 commit 3ba07b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/src/CoreLib/System/Security/PermissionSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public PermissionSet(PermissionSet permSet) { }
public virtual int Count { get { return 0; } }
public virtual bool IsReadOnly { get { return false; } }
public virtual bool IsSynchronized { get { return false; } }
public virtual object SyncRoot { get { return null; } }
public virtual object SyncRoot { get { return this; } }
public IPermission AddPermission(IPermission perm) { return AddPermissionImpl(perm); }
protected virtual IPermission AddPermissionImpl(IPermission perm) { return default(IPermission); }
public void Assert() { }
Expand Down

0 comments on commit 3ba07b2

Please sign in to comment.