Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Utils/GrassCoverErosionInwardsHelper.cs
===================================================================
diff -u -r2a0fbe6ec22928831305671ecd4f41030b827250 -r6c3b126a0a9d31abf3bada375416117f6ffb2e97
--- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Utils/GrassCoverErosionInwardsHelper.cs (.../GrassCoverErosionInwardsHelper.cs) (revision 2a0fbe6ec22928831305671ecd4f41030b827250)
+++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Utils/GrassCoverErosionInwardsHelper.cs (.../GrassCoverErosionInwardsHelper.cs) (revision 6c3b126a0a9d31abf3bada375416117f6ffb2e97)
@@ -92,7 +92,7 @@
/// Thrown when element in is
/// null.
public static IEnumerable UpdateCalculationToSectionResultAssignments(IEnumerable sectionResults,
- IEnumerable calculations)
+ IEnumerable calculations)
{
ValidateSectionResults(sectionResults);
@@ -116,7 +116,7 @@
{
if (calculations == null)
{
- throw new ArgumentNullException("calculations");
+ throw new ArgumentNullException(nameof(calculations));
}
return calculations.Select(AsCalculationWithLocation).Where(c => c != null);
}
@@ -125,11 +125,11 @@
{
if (sectionResults == null)
{
- throw new ArgumentNullException("sectionResults");
+ throw new ArgumentNullException(nameof(sectionResults));
}
if (sectionResults.Any(sr => sr == null))
{
- throw new ArgumentException("SectionResults contains an entry without value.", "sectionResults");
+ throw new ArgumentException("SectionResults contains an entry without value.", nameof(sectionResults));
}
}
@@ -143,7 +143,7 @@
{
if (calculation == null)
{
- throw new ArgumentNullException("calculation");
+ throw new ArgumentNullException(nameof(calculation));
}
if (calculation.InputParameters.DikeProfile == null)
{