1
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user