forked from ddrilling/AsbCloudServer
PlanFactBase, ArgumentInvalidException
This commit is contained in:
parent
57fc19396e
commit
73f2fe0826
@ -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
|
|
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user