Show / Hide Table of Contents

Struct LambdaContext

Represents lambda construction context.

Implements
IReadOnlyList<ParameterExpression>
IReadOnlyCollection<ParameterExpression>
IEnumerable<ParameterExpression>
IEnumerable
IDisposable
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Metaprogramming
Assembly: DotNext.Metaprogramming.dll
Syntax
public readonly struct LambdaContext : IReadOnlyList<ParameterExpression>, IReadOnlyCollection<ParameterExpression>, IEnumerable<ParameterExpression>, IEnumerable, IDisposable
Remarks

The context lifetime is limited by surrounding lexical scope of the lambda function.

Properties

| Edit this page View Source

this[int]

Gets parameter of the lambda function.

Declaration
public ParameterExpression this[int index] { get; }
Parameters
Type Name Description
int index

The index of the parameter.

Property Value
Type Description
ParameterExpression

The parameter of lambda function.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

Methods

| Edit this page View Source

Invoke(params Expression[])

Invokes function recursively.

Declaration
public InvocationExpression Invoke(params Expression[] args)
Parameters
Type Name Description
Expression[] args

The arguments to be passed into function.

Returns
Type Description
InvocationExpression

The invocation expression.

Remarks

This method doesn't add invocation expression as a statement. To add recursive call as statement, use Invoke(Expression, params Expression[]) instead.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

Implements

IReadOnlyList<T>
IReadOnlyCollection<T>
IEnumerable<T>
IEnumerable
IDisposable

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
Collection.Append<T>(IEnumerable<T>, params T[])
Collection.Copy<T>(IEnumerable<T>, int, MemoryAllocator<T>?)
Collection.ElementAt<T>(IEnumerable<T>, int, out T)
Collection.FirstOrNone<T>(IEnumerable<T>)
Collection.ForEachAsync<T>(IEnumerable<T>, Func<T, CancellationToken, ValueTask>, CancellationToken)
Collection.ForEach<T>(IEnumerable<T>, Action<T>)
Collection.LastOrNone<T>(IEnumerable<T>)
Collection.Prepend<T>(IEnumerable<T>, params T[])
Collection.SequenceHashCode<T>(IEnumerable<T>, bool)
Collection.SkipNulls<T>(IEnumerable<T?>)
Collection.ToAsyncEnumerable<T>(IEnumerable<T>)
Collection.ToString<T>(IEnumerable<T>, string, string)
Enumerator.GetAsyncEnumerator<T>(IEnumerable<T>, CancellationToken)
Collection.Convert<TInput, TOutput>(IReadOnlyCollection<TInput>, Converter<TInput, TOutput>)
List.Convert<TInput, TOutput>(IReadOnlyList<TInput>, Converter<TInput, TOutput>)
List.IndexerGetter<T>(IReadOnlyList<T>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾