This commit is contained in:
CortexCore
2023-11-15 23:55:06 +08:00
parent 5446067f91
commit 70247f0242
82 changed files with 3271 additions and 579 deletions

View File

@@ -1,4 +1,6 @@
namespace BITKit
using System;
namespace BITKit
{
public interface IOptional
{
@@ -34,6 +36,10 @@
{
return Allow ? Value : other;
}
public T IfNotAllow(Func<T> other)
{
return Allow ? Value : other.Invoke();
}
public void SetValueThenAllow(T newValue)
{