Showing the changes to Source/Libraries/GSF.Core/Threading/ManagedThreadPool.cs (1 of 72 files). Show all
Unified · Split
| @@ -56,7 +56,7 @@ namespace GSF.Threading · 55 unmodified lines | ||
| 56 | 56 | public static ManagedThread QueueUserWorkItem(ThreadStart callback) |
| 57 | 57 | { |
| 58 | 58 | if ((object)callback == null) |
| 59 | − throw (new ArgumentNullException("callback")); | |
| 59 | + throw (new ArgumentNullException(nameof(callback))); | |
| 60 | 60 | |
| 61 | 61 | ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, null, null); |
| 62 | 62 | |
| @@ -96,7 +96,7 @@ namespace GSF.Threading · 33 unmodified lines | ||
| 96 | 96 | public static ManagedThread QueueUserWorkItem(ParameterizedThreadStart callback, object state) |
| 97 | 97 | { |
| 98 | 98 | if ((object)callback == null) |
| 99 | − throw (new ArgumentNullException("callback")); | |
| 99 | + throw (new ArgumentNullException(nameof(callback))); | |
| 100 | 100 | |
| 101 | 101 | ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, state, null); |
| 102 | 102 | |
| @@ -138,7 +138,7 @@ namespace GSF.Threading · 35 unmodified lines | ||
| 138 | 138 | public static ManagedThread QueueUserWorkItem(ContextCallback callback, object state, ExecutionContext ctx) |
| 139 | 139 | { |
| 140 | 140 | if ((object)callback == null) |
| 141 | − throw (new ArgumentNullException("callback")); | |
| 141 | + throw (new ArgumentNullException(nameof(callback))); | |
| 142 | 142 | |
| 143 | 143 | ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, state, ctx); |
| 144 | 144 | |