20240326-1

This commit is contained in:
2024-03-26 22:11:15 +03:00
parent 8f6439b7d8
commit 061408763d
8 changed files with 162 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
namespace demo;
partial class ActionStateSerialize
sealed partial class ActionStateSerialize
{
/// <summary>
/// Required designer variable.

View File

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