Mass rename
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Bitvault;
|
||||
|
||||
public record SecureStorage<TValue>(TValue? Value = default);
|
||||
|
||||
public record Vault
|
||||
{
|
||||
public Vault(string name, string password)
|
||||
{
|
||||
Name = name;
|
||||
Password = password;
|
||||
}
|
||||
|
||||
public Vault(string password)
|
||||
{
|
||||
Password = password;
|
||||
}
|
||||
|
||||
|
||||
public static SecureStorage<TValue> As<TValue>(TValue value) => new(value);
|
||||
|
||||
public static SecureStorage<TValue> As<TValue>() where TValue : new() => new(new TValue());
|
||||
|
||||
|
||||
[MaybeNull]
|
||||
public string Name { get; }
|
||||
|
||||
[MaybeNull]
|
||||
public string? Password { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user