Show / Hide Table of Contents

    Class TesterFuncFactory<TTuple, TResult, TSuccess>

    Provides an easy way of invoking an TesterFunc<TResult, TSuccess> function delegate regardless of the amount of parameters provided.

    Inheritance
    System.Object
    TemplateFactory<TTuple>
    TesterFuncFactory<TTuple, TResult, TSuccess>
    Inherited Members
    TemplateFactory<TTuple>.GenericArguments
    TemplateFactory<TTuple>.ToString()
    TemplateFactory<TTuple>.ThrowIfNoValidDelegate(Boolean)
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public class TesterFuncFactory<TTuple, TResult, TSuccess> : TemplateFactory<TTuple> where TTuple : Template
    Type Parameters
    Name Description
    TTuple

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

    TResult

    The type of the out result value of the tester function delegate Method.

    TSuccess

    The type of the return value that indicates success of the tester function delegate Method.

    Constructors

    | Improve this Doc

    TesterFuncFactory(TesterFunc<TTuple, TResult, TSuccess>, TTuple)

    Initializes a new instance of the TesterFuncFactory<TTuple, TResult, TSuccess> class.

    Declaration
    public TesterFuncFactory(TesterFunc<TTuple, TResult, TSuccess> method, TTuple tuple)
    Parameters
    Type Name Description
    TesterFunc<TTuple, TResult, TSuccess> method

    The tester function delegate to invoke.

    TTuple tuple

    The n-tuple argument of method.

    Properties

    | Improve this Doc

    DelegateInfo

    Gets the method represented by the tester function delegate.

    Declaration
    public override MethodInfo DelegateInfo { get; }
    Property Value
    Type Description
    System.Reflection.MethodInfo

    A System.Reflection.MethodInfo describing the method represented by the tester function delegate.

    Overrides
    Cuemon.TemplateFactory<TTuple>.DelegateInfo
    | Improve this Doc

    HasDelegate

    Gets a value indicating whether this instance has an assigned tester function delegate.

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

    true if this instance an assigned tester function delegate; otherwise, false.

    Overrides
    Cuemon.TemplateFactory<TTuple>.HasDelegate
    | Improve this Doc

    Method

    Gets the tester function delegate to invoke.

    Declaration
    protected TesterFunc<TTuple, TResult, TSuccess> Method { get; }
    Property Value
    Type Description
    TesterFunc<TTuple, TResult, TSuccess>

    The TesterFunc<TResult, TSuccess> delegate to invoke.

    Methods

    | Improve this Doc

    Clone()

    Creates a shallow copy of the current TesterFuncFactory<TTuple, TResult, TSuccess> object.

    Declaration
    public TesterFuncFactory<TTuple, TResult, TSuccess> Clone()
    Returns
    Type Description
    TesterFuncFactory<TTuple, TResult, TSuccess>

    A new TesterFuncFactory<TTuple, TResult, TSuccess> that is a copy of this instance.

    Remarks

    When thread safety is required this is the method to invoke.

    | Improve this Doc

    ExecuteMethod(out TResult)

    Executes the tester function delegate associated with this instance.

    Declaration
    public virtual TSuccess ExecuteMethod(out TResult result)
    Parameters
    Type Name Description
    TResult result

    The out result value of the tester function delegate.

    Returns
    Type Description
    TSuccess

    The return value that indicates success of the tester function delegate associated with this instance.

    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
    • Constructors
      • TesterFuncFactory(TesterFunc<TTuple, TResult, TSuccess>, TTuple)
    • Properties
      • DelegateInfo
      • HasDelegate
      • Method
    • Methods
      • Clone()
      • ExecuteMethod(out TResult)
    • Extension Methods
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX