Show / Hide Table of Contents

    Class ConditionBuilder<TTuple>

    Supports the Condition in building custom scenarios using true/false propositions.

    Inheritance
    System.Object
    ConditionBuilder<TTuple>
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public class ConditionBuilder<TTuple>
        where TTuple : Template
    Type Parameters
    Name Description
    TTuple

    The type of the n-tuple representation of a Template.

    Properties

    | Improve this Doc

    ConditionResult

    Gets the current combined result of Initialize<TTuple, TValue>(TTuple, TValue, Func<TValue, Boolean>), And(Boolean) and Or(Boolean).

    Declaration
    public bool ConditionResult { get; }
    Property Value
    Type Description
    System.Boolean

    The current combined result of Initialize<TTuple, TValue>(TTuple, TValue, Func<TValue, Boolean>), And(Boolean) and Or(Boolean).

    Methods

    | Improve this Doc

    And(Boolean)

    Performs a a bitwise logical conjunction (AND) operation of ConditionResult and value.

    Declaration
    public ConditionBuilder<TTuple> And(bool value)
    Parameters
    Type Name Description
    System.Boolean value

    The value of a condition that can be either true or false.

    Returns
    Type Description
    ConditionBuilder<TTuple>

    This instance with the result of ConditionResult AND value.

    | Improve this Doc

    And<TValue>(TValue, Func<TValue, Boolean>)

    Performs a a bitwise logical conjunction (AND) operation of ConditionResult and the result of condition.

    Declaration
    public ConditionBuilder<TTuple> And<TValue>(TValue value, Func<TValue, bool> condition)
    Parameters
    Type Name Description
    TValue value

    The argument for condition.

    System.Func<TValue, System.Boolean> condition

    The delegate that will evaluate value.

    Returns
    Type Description
    ConditionBuilder<TTuple>

    This instance with the result of ConditionResult AND condition.

    Type Parameters
    Name Description
    TValue

    The type of the value for condition.

    | Improve this Doc

    Invoke(Action<TTuple>, Action<TTuple>)

    Invokes one of two expressions depending on the value of ConditionResult.

    Declaration
    public void Invoke(Action<TTuple> firstExpression, Action<TTuple> secondExpression)
    Parameters
    Type Name Description
    System.Action<TTuple> firstExpression

    The delegate that is invoked when ConditionResult is true.

    System.Action<TTuple> secondExpression

    The delegate that is invoked when ConditionResult is false.

    | Improve this Doc

    InvokeWhenFalse(Action<TTuple>)

    Invokes the expressions when ConditionResult is false.

    Declaration
    public void InvokeWhenFalse(Action<TTuple> expression)
    Parameters
    Type Name Description
    System.Action<TTuple> expression

    The delegate that is invoked when ConditionResult is false.

    | Improve this Doc

    InvokeWhenTrue(Action<TTuple>)

    Invokes the expressions when ConditionResult is true.

    Declaration
    public void InvokeWhenTrue(Action<TTuple> expression)
    Parameters
    Type Name Description
    System.Action<TTuple> expression

    The delegate that is invoked when ConditionResult is true.

    | Improve this Doc

    Or(Boolean)

    Performs a bitwise logical disjunction (OR) operation of ConditionResult and value.

    Declaration
    public ConditionBuilder<TTuple> Or(bool value)
    Parameters
    Type Name Description
    System.Boolean value

    The value of a condition that can be either true or false.

    Returns
    Type Description
    ConditionBuilder<TTuple>

    This instance with the result of ConditionResult OR value.

    | Improve this Doc

    Or<TValue>(TValue, Func<TValue, Boolean>)

    Performs a bitwise logical disjunction (OR) operation of ConditionResult and value.

    Declaration
    public ConditionBuilder<TTuple> Or<TValue>(TValue value, Func<TValue, bool> condition)
    Parameters
    Type Name Description
    TValue value

    The argument for condition.

    System.Func<TValue, System.Boolean> condition

    The delegate that will evaluate value.

    Returns
    Type Description
    ConditionBuilder<TTuple>

    This instance with the result of ConditionResult OR condition.

    Type Parameters
    Name Description
    TValue

    The type of the value for condition.

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • ConditionResult
    • Methods
      • And(Boolean)
      • And<TValue>(TValue, Func<TValue, Boolean>)
      • Invoke(Action<TTuple>, Action<TTuple>)
      • InvokeWhenFalse(Action<TTuple>)
      • InvokeWhenTrue(Action<TTuple>)
      • Or(Boolean)
      • Or<TValue>(TValue, Func<TValue, Boolean>)
    • Extension Methods
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX