Upraviť

Zdieľať cez


TupleElementNamesAttribute Constructors

Definition

Overloads

TupleElementNamesAttribute()

>Initializes a new instance of the TupleElementNamesAttribute class.

TupleElementNamesAttribute(String[])

Initializes a new instance of the TupleElementNamesAttribute class.

TupleElementNamesAttribute()

>Initializes a new instance of the TupleElementNamesAttribute class.

public:
 TupleElementNamesAttribute();
public TupleElementNamesAttribute ();
Public Sub New ()

Applies to

TupleElementNamesAttribute(String[])

Source:
TupleElementNamesAttribute.cs
Source:
TupleElementNamesAttribute.cs
Source:
TupleElementNamesAttribute.cs

Initializes a new instance of the TupleElementNamesAttribute class.

public:
 TupleElementNamesAttribute(cli::array <System::String ^> ^ transformNames);
public TupleElementNamesAttribute (string?[] transformNames);
public TupleElementNamesAttribute (string[] transformNames);
new System.Runtime.CompilerServices.TupleElementNamesAttribute : string[] -> System.Runtime.CompilerServices.TupleElementNamesAttribute
Public Sub New (transformNames As String())

Parameters

transformNames
String[]

A string array that specifies, in a pre-order depth-first traversal of a type's construction, which value tuple occurrences are meant to carry element names.

Remarks

This constructor is used on types that contain a value tuple instance with element names. For example, if C is a generic type with two type parameters, then the use of the constructed type C(ValueTuple<T1,T2>, ValueTuple<T1,T2,T3>) might be intended to treat the first type argument as a tuple with element names and the second as a tuple without element names. In this case, the appropriate attribute specification should use a transformNames value of { "name1", "name2", null, null, null}.

Applies to