20240328-1
This commit is contained in:
parent
f19ee998af
commit
9a2b2f6842
@ -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>
|
||||
/// Метод для выбора всех значений для условия
|
||||
|
@ -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>
|
||||
|
@ -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("ОШИБКА, ШЕФ!");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user