Showing the changes to Source/Libraries/GSF.Core/Configuration/ConfigurationFile.cs (1 of 72 files). Show all
Unified · Split
| @@ -508,7 +508,7 @@ namespace GSF.Configuration · 507 unmodified lines | ||
| 508 | 508 | } |
| 509 | 509 | else |
| 510 | 510 | { |
| 511 | − throw new ArgumentNullException("configFilePath", "Path of configuration file path cannot be null"); | |
| 511 | + throw new ArgumentNullException(nameof(configFilePath), "Path of configuration file path cannot be null"); | |
| 512 | 512 | } |
| 513 | 513 | |
| 514 | 514 | return configuration; |
| @@ -535,7 +535,7 @@ namespace GSF.Configuration · 20 unmodified lines | ||
| 535 | 535 | } |
| 536 | 536 | else |
| 537 | 537 | { |
| 538 | − throw (new ArgumentNullException("configFilePath", "Path of configuration file path cannot be null")); | |
| 538 | + throw (new ArgumentNullException(nameof(configFilePath), "Path of configuration file path cannot be null")); | |
| 539 | 539 | } |
| 540 | 540 | } |
| 541 | 541 | |
| @@ -592,7 +592,7 @@ namespace GSF.Configuration · 50 unmodified lines | ||
| 592 | 592 | } |
| 593 | 593 | else |
| 594 | 594 | { |
| 595 | − throw new ArgumentNullException("configFilePath", "Path of configuration file path cannot be null"); | |
| 595 | + throw new ArgumentNullException(nameof(configFilePath), "Path of configuration file path cannot be null"); | |
| 596 | 596 | } |
| 597 | 597 | } |
| 598 | 598 | |