It it now possible to create/edit item contents
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
public class DecoratorService<T> :
|
||||
IDecoratorService<T>
|
||||
{
|
||||
public T? Value { get; private set; }
|
||||
public T? Service { get; private set; }
|
||||
|
||||
public void Set(T value) => Value = value;
|
||||
public void Set(T value) => Service = value;
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
public interface IDecoratorService<T>
|
||||
{
|
||||
T? Value { get; }
|
||||
T? Service { get; }
|
||||
|
||||
void Set(T value);
|
||||
void Set(T service);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public class Query
|
||||
{
|
||||
public static QueryEventArgs<TValue> As<TValue>(TValue value) =>
|
||||
new(value);
|
||||
|
||||
public static QueryEventArgs<TValue> As<TValue>() where TValue : new() =>
|
||||
new(new TValue());
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record QueryEventArgs<TValue>(TValue Value);
|
||||
Reference in New Issue
Block a user