2023111-1

This commit is contained in:
Alexander 2023-11-01 12:57:43 +03:00
parent d8bc16b646
commit b3f35fafe6
2 changed files with 15 additions and 3 deletions

View File

@ -14,9 +14,9 @@ namespace anbs_cp.Classes;
public class ActionState<T>
{
/// <summary>
/// Конструктор
/// Конструктор по умолчанию
/// </summary>
protected ActionState ()
public ActionState ()
{
Info = new();
Warnings = new();
@ -24,6 +24,18 @@ public class ActionState<T>
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>

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Version>2023.1101.0</Version>
<Version>2023.1101.1</Version>
<Authors>Александр Бабаев</Authors>
<Product>Набор компонентов ANB Software</Product>
<Description>Библиотека полезных методов языка C#</Description>