2023111-1
This commit is contained in:
parent
d8bc16b646
commit
b3f35fafe6
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user