Showing the changes to Source/Libraries/GSF.Core/ReusableObjectPool.cs (1 of 72 files). Show all
Unified · Split
| @@ -280,7 +280,7 @@ namespace GSF · 279 unmodified lines | ||
| 280 | 280 | public void SetPoolSize(int size) |
| 281 | 281 | { |
| 282 | 282 | 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"); | |
| 284 | 284 | |
| 285 | 285 | for (int i = 0; i < size - m_objectPool.Count; i++) |
| 286 | 286 | { |
| @@ -458,7 +458,7 @@ namespace GSF · 171 unmodified lines | ||
| 458 | 458 | public static void SetPoolSize(Type type, int size) |
| 459 | 459 | { |
| 460 | 460 | 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"); | |
| 462 | 462 | |
| 463 | 463 | // Get or create object pool associated with specified type |
| 464 | 464 | ConcurrentQueue<object> objectPool = s_objectPools.GetOrAdd(type, (objType) => new ConcurrentQueue<object>()); |