PlanFactBase, ArgumentInvalidException

This commit is contained in:
ai.astrakhantsev 2023-02-27 10:33:59 +05:00
parent 57fc19396e
commit 73f2fe0826
3 changed files with 6 additions and 8 deletions

View File

@ -1,5 +1,4 @@
#nullable enable
using System.Linq;
using System.Linq;
namespace System.Collections.Generic
{
@ -195,4 +194,3 @@ namespace System.Collections.Generic
}
}
}
#nullable disable

View File

@ -9,11 +9,11 @@
/// <summary>
/// Плановое значение
/// </summary>
public T Plan { get; set; }
public T? Plan { get; set; }
/// <summary>
/// Фактическое значение
/// </summary>
public T Fact { get; set; }
public T? Fact { get; set; }
}
}

View File

@ -10,14 +10,14 @@ namespace AsbCloudApp.Exceptions
/// <summary>
/// название аргумента
/// </summary>
public string ParamName { get; }
public string ParamName { get; } = string.Empty;
/// <summary>
/// конструктор
/// </summary>
/// <param name="message"></param>
/// <param name="paramName"></param>
public ArgumentInvalidException(string message, string paramName = default)
public ArgumentInvalidException(string message, string paramName)
: base(message)
{
ParamName = paramName;