Show / Hide Table of Contents

Delegate MatchBuilder.Pattern

Represents condition constructor for the switch case.

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

The value participating in pattern match.

Returns
Type Description
Expression

The condition for evaluation.

Constructors

View Source

Pattern(object, nint)

Declaration
public Pattern(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
☀
☾