20240328-1

This commit is contained in:
Александр Бабаев 2024-03-28 16:05:03 +03:00
parent f19ee998af
commit 9a2b2f6842
3 changed files with 7 additions and 4 deletions

View File

@ -30,7 +30,7 @@ namespace anbs_cp.Classes;
*/
/// <inheritdoc />
public class ActionState<T> (T? defaultValue = default): ISerializable
public class ActionState<T>: ISerializable
{
/// <summary>
/// Список информации
@ -41,7 +41,7 @@ public class ActionState<T> (T? defaultValue = default): ISerializable
/// <summary>
/// Значение
/// </summary>
public T? Value { get; set; } = defaultValue;
public T? Value { get; set; }
/// <summary>
/// Метод для выбора всех значений для условия

View File

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

View File

@ -16,7 +16,10 @@ public sealed partial class ActionStateSerialize: Form
Name = textBox1.Text.Length > 0 ? textBox1.Text : string.Empty
};
ActionState<DemoClass> state = new(demoClass);
ActionState<DemoClass> state = new()
{
Value = demoClass
};
state.AddError("ОШИБКА, ШЕФ!");