History

Added more code to GSF shared code project - moved PathHelper path validation function into FilePath

J. Ritchie Carroll committed 10 years ago

Commit e16ec441 parent 612a09672 files · +1523 −1481Browse files

Showing the changes to Source/Libraries/GSF.Core/Threading/ManagedThreadPool.cs (1 of 72 files). Show all

Unified · Split

Source/Libraries/GSF.Core/Threading/ManagedThreadPool.cs+3−3
@@ -56,7 +56,7 @@ namespace GSF.Threading · 55 unmodified lines
5656 public static ManagedThread QueueUserWorkItem(ThreadStart callback)
5757 {
5858 if ((object)callback == null)
59− throw (new ArgumentNullException("callback"));
59+ throw (new ArgumentNullException(nameof(callback)));
6060
6161 ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, null, null);
6262
@@ -96,7 +96,7 @@ namespace GSF.Threading · 33 unmodified lines
9696 public static ManagedThread QueueUserWorkItem(ParameterizedThreadStart callback, object state)
9797 {
9898 if ((object)callback == null)
99− throw (new ArgumentNullException("callback"));
99+ throw (new ArgumentNullException(nameof(callback)));
100100
101101 ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, state, null);
102102
@@ -138,7 +138,7 @@ namespace GSF.Threading · 35 unmodified lines
138138 public static ManagedThread QueueUserWorkItem(ContextCallback callback, object state, ExecutionContext ctx)
139139 {
140140 if ((object)callback == null)
141− throw (new ArgumentNullException("callback"));
141+ throw (new ArgumentNullException(nameof(callback)));
142142
143143 ManagedThread item = new ManagedThread(ThreadType.QueuedThread, callback, state, ctx);
144144

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t