MatchBuilder<(Of <(<'TItem>)>)>..::..Match Method

Overload List


  Name Description
Public method Match<(Of <<'(T>)>>)(Action<(Of <<'(T>)>>), Predicate<(Of <<'(T>)>>))
Adds a handler that is called if the item being matched is of type T and shouldHandle, if it has been specified, returns true.

Remarks


Note that if a previous added handler handled the item, this handler will not be invoked.
Public method Match(Type, Action<(Of <<'(TItem>)>>), Predicate<(Of <<'(TItem>)>>))
Adds a handler that is called if the item being matched is of type handlesType and shouldHandle, if it has been specified, returns true.

Remarks


Note that if a previous added handler handled the item, this handler will not be invoked.
Public method Match<(Of <<'(T>)>>)(Func<(Of <<'(T, Boolean>)>>))
Adds a handler that is called if the item being matched is of type T. The handler should return true if the item sent in matched and was handled.

Remarks


Note that if a previous added handler handled the item, this handler will not be invoked.
Public method Match(Type, Func<(Of <<'(TItem, Boolean>)>>))
Adds a handler that is called if the item being matched is of type handlesType. The handler should return true if the item sent in matched and was handled.

Remarks


Note that if a previous added handler handled the item, this handler will not be invoked.