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 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

| Improve this Doc View Source

Item[Int32]

Gets parameter of the lambda function.

Declaration
public ParameterExpression this[int index] { get; }
Parameters
Type Name Description
Int32 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

| Improve this Doc View Source

Deconstruct(out ParameterExpression, out ParameterExpression)

Obtains first two arguments in the form of expressions.

Declaration
public void Deconstruct(out ParameterExpression arg1, out ParameterExpression arg2)
Parameters
Type Name Description
ParameterExpression arg1

The expression representing the first argument.

ParameterExpression arg2

The expression representing the second argument.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

| Improve this Doc View Source

Deconstruct(out ParameterExpression, out ParameterExpression, out ParameterExpression)

Obtains first three arguments in the form of expressions.

Declaration
public void Deconstruct(out ParameterExpression arg1, out ParameterExpression arg2, out ParameterExpression arg3)
Parameters
Type Name Description
ParameterExpression arg1

The expression representing the first argument.

ParameterExpression arg2

The expression representing the second argument.

ParameterExpression arg3

The expression representing the third argument.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

| Improve this Doc View Source

Deconstruct(out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression)

Obtains first four arguments in the form of expressions.

Declaration
public void Deconstruct(out ParameterExpression arg1, out ParameterExpression arg2, out ParameterExpression arg3, out ParameterExpression arg4)
Parameters
Type Name Description
ParameterExpression arg1

The expression representing the first argument.

ParameterExpression arg2

The expression representing the second argument.

ParameterExpression arg3

The expression representing the third argument.

ParameterExpression arg4

The expression representing the fourth argument.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

| Improve this Doc View Source

Deconstruct(out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression)

Obtains first five arguments in the form of expressions.

Declaration
public void Deconstruct(out ParameterExpression arg1, out ParameterExpression arg2, out ParameterExpression arg3, out ParameterExpression arg4, out ParameterExpression arg5)
Parameters
Type Name Description
ParameterExpression arg1

The expression representing the first argument.

ParameterExpression arg2

The expression representing the second argument.

ParameterExpression arg3

The expression representing the third argument.

ParameterExpression arg4

The expression representing the fourth argument.

ParameterExpression arg5

The expression representing the fifth argument.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

| Improve this Doc View Source

Deconstruct(out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression)

Obtains first six arguments in the form of expressions.

Declaration
public void Deconstruct(out ParameterExpression arg1, out ParameterExpression arg2, out ParameterExpression arg3, out ParameterExpression arg4, out ParameterExpression arg5, out ParameterExpression arg6)
Parameters
Type Name Description
ParameterExpression arg1

The expression representing the first argument.

ParameterExpression arg2

The expression representing the second argument.

ParameterExpression arg3

The expression representing the third argument.

ParameterExpression arg4

The expression representing the fourth argument.

ParameterExpression arg5

The expression representing the fifth argument.

ParameterExpression arg6

The expression representing the sixth argument.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

| Improve this Doc View Source

Deconstruct(out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression)

Obtains first seven arguments in the form of expressions.

Declaration
public void Deconstruct(out ParameterExpression arg1, out ParameterExpression arg2, out ParameterExpression arg3, out ParameterExpression arg4, out ParameterExpression arg5, out ParameterExpression arg6, out ParameterExpression arg7)
Parameters
Type Name Description
ParameterExpression arg1

The expression representing the first argument.

ParameterExpression arg2

The expression representing the second argument.

ParameterExpression arg3

The expression representing the third argument.

ParameterExpression arg4

The expression representing the fourth argument.

ParameterExpression arg5

The expression representing the fifth argument.

ParameterExpression arg6

The expression representing the sixth argument.

ParameterExpression arg7

The expression representing the seventh argument.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

| Improve this Doc View Source

Deconstruct(out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression)

Obtains first eight arguments in the form of expressions.

Declaration
public void Deconstruct(out ParameterExpression arg1, out ParameterExpression arg2, out ParameterExpression arg3, out ParameterExpression arg4, out ParameterExpression arg5, out ParameterExpression arg6, out ParameterExpression arg7, out ParameterExpression arg8)
Parameters
Type Name Description
ParameterExpression arg1

The expression representing the first argument.

ParameterExpression arg2

The expression representing the second argument.

ParameterExpression arg3

The expression representing the third argument.

ParameterExpression arg4

The expression representing the fourth argument.

ParameterExpression arg5

The expression representing the fifth argument.

ParameterExpression arg6

The expression representing the sixth argument.

ParameterExpression arg7

The expression representing the seventh argument.

ParameterExpression arg8

The expression representing the eighth argument.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

| Improve this Doc View Source

Deconstruct(out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression)

Obtains first nine arguments in the form of expressions.

Declaration
public void Deconstruct(out ParameterExpression arg1, out ParameterExpression arg2, out ParameterExpression arg3, out ParameterExpression arg4, out ParameterExpression arg5, out ParameterExpression arg6, out ParameterExpression arg7, out ParameterExpression arg8, out ParameterExpression arg9)
Parameters
Type Name Description
ParameterExpression arg1

The expression representing the first argument.

ParameterExpression arg2

The expression representing the second argument.

ParameterExpression arg3

The expression representing the third argument.

ParameterExpression arg4

The expression representing the fourth argument.

ParameterExpression arg5

The expression representing the fifth argument.

ParameterExpression arg6

The expression representing the sixth argument.

ParameterExpression arg7

The expression representing the seventh argument.

ParameterExpression arg8

The expression representing the eighth argument.

ParameterExpression arg9

The expression representing the ninth argument.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

| Improve this Doc View Source

Deconstruct(out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression, out ParameterExpression)

Obtains first ten arguments in the form of expressions.

Declaration
public void Deconstruct(out ParameterExpression arg1, out ParameterExpression arg2, out ParameterExpression arg3, out ParameterExpression arg4, out ParameterExpression arg5, out ParameterExpression arg6, out ParameterExpression arg7, out ParameterExpression arg8, out ParameterExpression arg9, out ParameterExpression arg10)
Parameters
Type Name Description
ParameterExpression arg1

The expression representing the first argument.

ParameterExpression arg2

The expression representing the second argument.

ParameterExpression arg3

The expression representing the third argument.

ParameterExpression arg4

The expression representing the fourth argument.

ParameterExpression arg5

The expression representing the fifth argument.

ParameterExpression arg6

The expression representing the sixth argument.

ParameterExpression arg7

The expression representing the seventh argument.

ParameterExpression arg8

The expression representing the eighth argument.

ParameterExpression arg9

The expression representing the ninth argument.

ParameterExpression arg10

The expression representing the tenth argument.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

| Improve this Doc View Source

Invoke(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, Expression[]) instead.

Exceptions
Type Condition
ObjectDisposedException

This context is no longer available.

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable<ParameterExpression>.GetEnumerator()

Declaration
IEnumerator<ParameterExpression> IEnumerable<ParameterExpression>.GetEnumerator()
Returns
Type Description
IEnumerator<ParameterExpression>
| Improve this Doc View Source

IReadOnlyCollection<ParameterExpression>.Count

Declaration
int IReadOnlyCollection<ParameterExpression>.Count { get; }
Returns
Type Description
Int32
| Improve this Doc View Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
IEnumerator
| Improve this Doc View Source

IDisposable.Dispose()

Declaration
void IDisposable.Dispose()

Implements

System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable

Extension Methods

Collection.Convert<TInput, TOutput>(IReadOnlyCollection<TInput>, ValueFunc<TInput, TOutput>)
Collection.Convert<TInput, TOutput>(IReadOnlyCollection<TInput>, Converter<TInput, TOutput>)
List.IndexerGetter<T>(IReadOnlyList<T>)
List.Convert<TInput, TOutput>(IReadOnlyList<TInput>, ValueFunc<TInput, TOutput>)
List.Convert<TInput, TOutput>(IReadOnlyList<TInput>, Converter<TInput, TOutput>)
Sequence.ToAsyncEnumerable<T>(IEnumerable<T>)
Sequence.GetAsyncEnumerator<T>(IEnumerable<T>, CancellationToken)
Sequence.SequenceHashCode(IEnumerable<Object>, Boolean)
Sequence.ForEach<T>(IEnumerable<T>, Action<T>)
Sequence.ForEach<T>(IEnumerable<T>, ValueAction<T>)
Sequence.ForEachAsync<T>(IEnumerable<T>, Func<T, CancellationToken, ValueTask>, CancellationToken)
Sequence.ForEachAsync<T>(IEnumerable<T>, ValueFunc<T, CancellationToken, ValueTask>, CancellationToken)
Sequence.FirstOrEmpty<T>(IEnumerable<T>)
Sequence.FirstOrEmpty<T>(IEnumerable<T>, ValueFunc<T, Boolean>)
Sequence.FirstOrEmpty<T>(IEnumerable<T>, Predicate<T>)
Sequence.Skip<TEnumerator, T>(ref TEnumerator, Int32)
Sequence.ElementAt<T>(IEnumerable<T>, Int32, out T)
Sequence.SkipNulls<T>(IEnumerable<T>)
Sequence.ToString<T>(IEnumerable<T>, String, String)
Sequence.Prepend<T>(IEnumerable<T>, T[])
Sequence.Append<T>(IEnumerable<T>, T[])
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX