Delegate ValueFormatterFactory
Custom value formatter factory function
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public delegate ValueFormatter ValueFormatterFactory(ValueFormatter next)
Parameters
| Type | Name | Description |
|---|---|---|
| ValueFormatter | next | The next formatter function |
Returns
| Type | Description |
|---|---|
| ValueFormatter | ValueFormatter |
Remarks
If the given formatter is unable to handle a certain format, it must call the next formatter in the chain
Constructors
View SourceValueFormatterFactory(object, nint)
Declaration
public ValueFormatterFactory(object @object, nint method)
Parameters
| Type | Name | Description |
|---|---|---|
| object | object | |
| nint | method |
Methods
View SourceBeginInvoke(ValueFormatter, AsyncCallback, object)
Declaration
public virtual IAsyncResult BeginInvoke(ValueFormatter next, AsyncCallback callback, object @object)
Parameters
| Type | Name | Description |
|---|---|---|
| ValueFormatter | next | |
| AsyncCallback | callback | |
| object | object |
Returns
| Type | Description |
|---|---|
| IAsyncResult |
EndInvoke(IAsyncResult)
Declaration
public virtual ValueFormatter EndInvoke(IAsyncResult result)
Parameters
| Type | Name | Description |
|---|---|---|
| IAsyncResult | result |
Returns
| Type | Description |
|---|---|
| ValueFormatter |
Invoke(ValueFormatter)
Declaration
public virtual ValueFormatter Invoke(ValueFormatter next)
Parameters
| Type | Name | Description |
|---|---|---|
| ValueFormatter | next |
Returns
| Type | Description |
|---|---|
| ValueFormatter |