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 namespace System.Collections.Generic
{ {
@ -194,5 +193,4 @@ namespace System.Collections.Generic
current = -1; current = -1;
} }
} }
} }
#nullable disable

View File

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

View File

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