ErlPatternMatcher Add TContext  Method (TContext, IErlObject, PatternMatchFunc TContext )NFX Class Library

[This is preliminary documentation and is subject to change.]

Add a matching pattern to the collection

Namespace: NFX.Erlang
Assembly: NFX.Erlang (in NFX.Erlang.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public int Add<TContext>(
	TContext context,
	IErlObject pattern,
	PatternMatchFunc<TContext> func
)

Parameters

context
Type: TContext
Context passed to func
pattern
Type: NFX.Erlang IErlObject
Compiled pattern containing variables to match
func
Type: NFX.Erlang PatternMatchFunc TContext 
Function to invoke on successful match
Type Parameters

TContext
Type of context passed to func

Return Value

Type: OnlineInt32
ID of the newly added pattern
See Also