Show / Hide Table of Contents

Class ValueTupleBuilder

Represents value tuple builder with arbitrary number of tuple items.

Inheritance
Object
ValueTupleBuilder
Implements
IEnumerable<Type>
Namespace: DotNext.Runtime.CompilerServices
Assembly: DotNext.Metaprogramming.dll
Syntax
public sealed class ValueTupleBuilder : Disposable, IEnumerable<Type>

Properties

| Improve this Doc View Source

Count

Number of elements in the tuple.

Declaration
public int Count { get; }
Property Value
Type Description
Int32

Methods

| Improve this Doc View Source

Add(Type)

Adds a new component into tuple.

Declaration
public void Add(Type itemType)
Parameters
Type Name Description
Type itemType

The type of the tuple component.

| Improve this Doc View Source

Add<T>()

Adds a new component into tuple.

Declaration
public void Add<T>()
Type Parameters
Name Description
T

The type of the tuple component.

| Improve this Doc View Source

Build()

Constructs value tuple.

Declaration
public Type Build()
Returns
Type Description
Type

Value tuple.

| Improve this Doc View Source

Build<E>(Func<Type, E>, out E)

Constructs expression tree based on value tuple type.

Declaration
public MemberExpression[] Build<E>(Func<Type, E> expressionFactory, out E expression)

    where E : Expression
Parameters
Type Name Description
Func<Type, E> expressionFactory

A function accepting value tuple type and returning expression tree.

E expression

Constructed expression.

Returns
Type Description
MemberExpression[]

Sorted array of value tuple type components.

Type Parameters
Name Description
E

Type of expression tree.

| Improve this Doc View Source

Dispose(Boolean)

Releases all managed resources associated with this builder.

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

true if called from ; otherwise, false.

| Improve this Doc View Source

GetEnumerator()

Returns an enumerator over all tuple components.

Declaration
public IEnumerator<Type> GetEnumerator()
Returns
Type Description
IEnumerator<Type>

An enumerator over all tuple components.

Implements

IEnumerable<>

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ExpressionBuilder.Const<T>(T)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)

See Also

Tuples
  • Improve this Doc
  • View Source
Back to top Generated by DocFX