Improved event naming

This commit is contained in:
TheXamlGuy
2024-05-12 19:55:20 +01:00
parent 3ba21051bf
commit 105aa2da26
21 changed files with 111 additions and 60 deletions
+3 -5
View File
@@ -2,8 +2,6 @@
namespace Bitvault;
public record Container<TValue>(TValue? Value = default);
public record Container
{
public Container(string name, string password)
@@ -17,10 +15,10 @@ public record Container
Password = password;
}
public Container()
{
public static Container<TValue> As<TValue>(TValue value) => new(value);
public static Container<TValue> As<TValue>() where TValue : new() => new(new TValue());
}
[MaybeNull]