示例#1
0
 /// <summary>
 /// Invokes an action if the object checked for null, but was not null.
 /// </summary>
 public static void Else(this HUMValue.Data.IsNull isNull, Action notNull = null)
 {
     if (!isNull.isNull)
     {
         notNull?.Invoke();
     }
 }
示例#2
0
 /// <summary>
 /// Begins an or operation if an object is checked for null but isn't.
 /// </summary>
 public static HUMValue.Data.Or Or <T>(this HUMValue.Data.IsNull isNull, T value) where T : class
 {
     return(new HUMValue.Data.Or(value, isNull.isNull));
 }