Skip to content

Commit

Permalink
simplify IsHeldByCurrentThread
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 9, 2024
1 parent 84f7177 commit 1adcd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Polyfill/Lock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace System.Threading;
#endif
class Lock
{
#if (NETCOREAPP) || (NETFRAMEWORK && NET45_OR_GREATER) || (NETSTANDARD)
#if NETCOREAPP || NETFRAMEWORK || NETSTANDARD
public bool IsHeldByCurrentThread => Monitor.IsEntered(this);
#endif

Expand Down

0 comments on commit 1adcd7e

Please sign in to comment.