MatchBuilder Members

The MatchBuilder type exposes the following members.

Constructors


  Name Description
Public method MatchBuilder

Methods


  Name Description
Public method Build
Builds all added handlers and returns a PartialAction<object>.
(Inherited from MatchBuilder<(Of <(<'TItem>)>)>.)
Public method BuildToMethod (Inherited from MatchBuilder<(Of <(<'TItem>)>)>.)
Public method Equals(System.Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
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.
(Inherited from MatchBuilder<(Of <(<'TItem>)>)>.)
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.
(Inherited from MatchBuilder<(Of <(<'TItem>)>)>.)
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.
(Inherited from MatchBuilder<(Of <(<'TItem>)>)>.)
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.
(Inherited from MatchBuilder<(Of <(<'TItem>)>)>.)
Public method MatchAny
Adds a handler that is invoked no matter the type the item being matched is.

Remarks


Note that since this matches all items, no more handlers may be added after this one.

Remarks


Note that if a previous added handler handled the item, this handler will not be invoked.
(Inherited from MatchBuilder<(Of <(<'TItem>)>)>.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)