An attempt to send messages out of the scope
This commit is contained in:
+1
-17
@@ -1,23 +1,7 @@
|
||||
namespace Bitvault;
|
||||
|
||||
public record Item<TValue>(TValue? Value = default);
|
||||
|
||||
public record Item
|
||||
{
|
||||
public Item(int id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public Item()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static Item<TValue> As<TValue>(TValue value) => new(value);
|
||||
|
||||
public static Item<TValue> As<TValue>() where TValue : new() => new(new TValue());
|
||||
|
||||
public int Id { get; }
|
||||
public int Id { get; init; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user