14 lines
255 B
C#
14 lines
255 B
C#
|
namespace drinkMe.Client.Helpers
|
|||
|
{
|
|||
|
public static class VUtilities
|
|||
|
{
|
|||
|
public static T IfTrueThen<T>(bool conditionIsTrue, T ifTrue, T ifFalse = default)
|
|||
|
{
|
|||
|
if (conditionIsTrue)
|
|||
|
return ifTrue;
|
|||
|
else
|
|||
|
return ifFalse;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|