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
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 View Source

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 View Source

DelegateInfo

Gets the method represented by the tester function delegate.

Declaration
public sealed override MethodInfo DelegateInfo { get; }
Property Value
Type Description
MethodInfo

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

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

HasDelegate

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

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

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

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

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 View Source

Clone()

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

Declaration
public override TemplateFactory<TTuple> Clone()
Returns
Type Description
TemplateFactory<TTuple>

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

Overrides
Cuemon.TemplateFactory<TTuple>.Clone()
Remarks

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

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX