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/ReusableObjectPool.cs (1 of 72 files). Show all

Unified · Split

Source/Libraries/GSF.Core/ReusableObjectPool.cs+2−2
@@ -280,7 +280,7 @@ namespace GSF · 279 unmodified lines
280280 public void SetPoolSize(int size)
281281 {
282282 if (size < 1)
283− throw new ArgumentOutOfRangeException("size", "pool size must at least be one");
283+ throw new ArgumentOutOfRangeException(nameof(size), "pool size must at least be one");
284284
285285 for (int i = 0; i < size - m_objectPool.Count; i++)
286286 {
@@ -458,7 +458,7 @@ namespace GSF · 171 unmodified lines
458458 public static void SetPoolSize(Type type, int size)
459459 {
460460 if (size < 1)
461− throw new ArgumentOutOfRangeException("size", "pool size must at least be one");
461+ throw new ArgumentOutOfRangeException(nameof(size), "pool size must at least be one");
462462
463463 // Get or create object pool associated with specified type
464464 ConcurrentQueue<object> objectPool = s_objectPools.GetOrAdd(type, (objType) => new ConcurrentQueue<object>());

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