示例#1
0
 /// <summary>
 /// Enables following execution expressions if the
 /// current evaluated expression is False
 /// </summary>
 /// <param name="expression">Boolean expression</param>
 /// <returns>Set of valid operations</returns>
 public static Operations.Operations IfFalse(this bool expression)
 => OperationsFactory.GetOperations(!expression);
示例#2
0
 /// <summary>
 /// Enables following execution expressions if the
 /// current object is Null
 /// </summary>
 /// <param name="obj">Nullable object</param>
 /// <returns>Set of valid operations</returns>
 public static Operations.Operations IfNull(this object obj)
 => OperationsFactory.GetOperations(obj == null);
示例#3
0
 /// <summary>
 /// Enables following execution expressions if the
 /// current evaluated expression is True
 /// </summary>
 /// <param name="expression">Boolean expression</param>
 /// <returns>Set of valid operations</returns>
 public static Operations.Operations IfTrue(this bool expression)
 => OperationsFactory.GetOperations(expression);