23 lines
450 B
C#
23 lines
450 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BS.Shared.Extensions
|
|
{
|
|
public static class BoolExtensions
|
|
{
|
|
/// <summary>
|
|
/// Wenn "a" wahr ist, dann muss auch "b" wahr sein.
|
|
/// </summary>
|
|
/// <param name="a"></param>
|
|
/// <param name="b"></param>
|
|
/// <returns></returns>
|
|
public static bool Implies(this bool a, bool b)
|
|
{
|
|
return !a || b;
|
|
}
|
|
}
|
|
}
|