Show / Hide Table of Contents

Delegate MatchBuilder.CaseStatement

Represents constructor of the action to be executed if value matches to the pattern defined by MatchBuilder.Pattern.

Namespace: DotNext.Metaprogramming
Assembly: DotNext.Metaprogramming.dll
Syntax
public delegate Expression MatchBuilder.CaseStatement(ParameterExpression value)
Parameters
Type Name Description
ParameterExpression value

The value participating in pattern match.

Returns
Type Description
Expression

The action to be executed if object matches to the pattern.

Constructors

View Source

CaseStatement(object, nint)

Declaration
public CaseStatement(object @object, nint method)
Parameters
Type Name Description
object object
nint method

Methods

View Source

BeginInvoke(ParameterExpression, AsyncCallback, object)

Declaration
public virtual IAsyncResult BeginInvoke(ParameterExpression value, AsyncCallback callback, object @object)
Parameters
Type Name Description
ParameterExpression value
AsyncCallback callback
object object
Returns
Type Description
IAsyncResult
View Source

EndInvoke(IAsyncResult)

Declaration
public virtual Expression EndInvoke(IAsyncResult result)
Parameters
Type Name Description
IAsyncResult result
Returns
Type Description
Expression
View Source

Invoke(ParameterExpression)

Declaration
public virtual Expression Invoke(ParameterExpression value)
Parameters
Type Name Description
ParameterExpression value
Returns
Type Description
Expression

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
DelegateHelpers.ChangeType<TDelegate>(Delegate)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾