Represents an element of a tuple type.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
public interface ITupleElement : IField, IFieldOrProperty, IFieldOrPropertyOrIndexer, IHasAccessors, IMember, IMemberOrNamedType, INamedDeclaration, IDeclaration, IDisplayable, IDiagnosticLocation, ICompilationElement, IMeasurable, IEquatable<IDeclaration>, IFieldOrPropertyInvoker, IExpression, IHasTypeRemarks
To access a tuple element's value in generated code, use the WithObject(IExpression?) method, passing the tuple instance expression.
Properties
| Name | Description |
|---|---|
| CorrespondingTupleField | Gets the corresponding field in the underlying tuple structure, typically a field with a name |
| HasFriendlyName | Gets a value indicating whether the element has a user-defined friendly name. |
| Index | Gets the zero-based index of the element in the tuple. |
| Value |