2023111-1
This commit is contained in:
parent
d8bc16b646
commit
b3f35fafe6
@ -14,9 +14,9 @@ namespace anbs_cp.Classes;
|
|||||||
public class ActionState<T>
|
public class ActionState<T>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Конструктор
|
/// Конструктор по умолчанию
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected ActionState ()
|
public ActionState ()
|
||||||
{
|
{
|
||||||
Info = new();
|
Info = new();
|
||||||
Warnings = new();
|
Warnings = new();
|
||||||
@ -24,6 +24,18 @@ public class ActionState<T>
|
|||||||
Value = default;
|
Value = default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Конструктор с указанием начального значения <see cref="Value"/>
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="defaultValue">Начальное значение <see cref="Value"/></param>
|
||||||
|
public ActionState (T defaultValue)
|
||||||
|
{
|
||||||
|
Info = new();
|
||||||
|
Warnings = new();
|
||||||
|
Errors = new();
|
||||||
|
Value = defaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Список информации
|
/// Список информации
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<Version>2023.1101.0</Version>
|
<Version>2023.1101.1</Version>
|
||||||
<Authors>Александр Бабаев</Authors>
|
<Authors>Александр Бабаев</Authors>
|
||||||
<Product>Набор компонентов ANB Software</Product>
|
<Product>Набор компонентов ANB Software</Product>
|
||||||
<Description>Библиотека полезных методов языка C#</Description>
|
<Description>Библиотека полезных методов языка C#</Description>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user