Show / Hide Table of Contents

    Class TemplateFactory<TTuple>

    Provides a base-class for delegate based factories.

    Inheritance
    System.Object
    TemplateFactory<TTuple>
    ActionFactory<TTuple>
    FuncFactory<TTuple, TResult>
    TaskActionFactory<TTuple>
    TaskFuncFactory<TTuple, TResult>
    TesterFuncFactory<TTuple, TResult, TSuccess>
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public abstract class TemplateFactory<TTuple>
        where TTuple : Template
    Type Parameters
    Name Description
    TTuple

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

    Constructors

    | Improve this Doc

    TemplateFactory(TTuple, Boolean)

    Initializes a new instance of the TemplateFactory<TTuple> class.

    Declaration
    protected TemplateFactory(TTuple tuple, bool hasDelegate)
    Parameters
    Type Name Description
    TTuple tuple

    Then-tuple representation of a Template.

    System.Boolean hasDelegate

    true if this instance has a valid delegate; otherwise, false.

    Properties

    | Improve this Doc

    DelegateInfo

    Gets the method represented by the delegate.

    Declaration
    public virtual MethodInfo DelegateInfo { get; protected set; }
    Property Value
    Type Description
    System.Reflection.MethodInfo

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

    | Improve this Doc

    GenericArguments

    Gets a n-tuple representation of a Template that represents the generic arguments passed to this instance.

    Declaration
    public TTuple GenericArguments { get; }
    Property Value
    Type Description
    TTuple

    The n-tuple representation of a Template that represents the generic arguments passed to this instance.

    | Improve this Doc

    HasDelegate

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

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

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

    Methods

    | Improve this Doc

    ThrowIfNoValidDelegate(Boolean)

    Validates and throws an System.InvalidOperationException if this instance has no valid delegate.

    Declaration
    protected void ThrowIfNoValidDelegate(bool delegateIsNull)
    Parameters
    Type Name Description
    System.Boolean delegateIsNull

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

    | Improve this Doc

    ToString()

    Returns a System.String that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String that represents this instance.

    Overrides
    System.Object.ToString()

    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
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX