예제 #1
0
 /// <summary>
 /// Invokes an action if an object was checked for being not null, and was.
 /// </summary>
 public static void Else(this HUMValue.Data.NotNull isNotNull, Action notNull = null)
 {
     if (isNotNull.isNull)
     {
         notNull?.Invoke();
     }
 }
예제 #2
0
 /// <summary>
 /// Begins an or operation if an object is check for not being null, but is.
 /// </summary>
 public static HUMValue.Data.Or Or <T>(this HUMValue.Data.NotNull notNull, T value) where T : class
 {
     return(new HUMValue.Data.Or(value, notNull.isNull));
 }