Aracılığıyla paylaş


Compilation.CheckTupleElementNames Method

Definition

Check that if any names are provided, and their number matches the expected cardinality. Returns a normalized version of the element names (empty array if all the names are null).

protected:
 static System::Collections::Immutable::ImmutableArray<System::String ^> CheckTupleElementNames(int cardinality, System::Collections::Immutable::ImmutableArray<System::String ^> elementNames);
protected static System.Collections.Immutable.ImmutableArray<string> CheckTupleElementNames (int cardinality, System.Collections.Immutable.ImmutableArray<string> elementNames);
protected static System.Collections.Immutable.ImmutableArray<string?> CheckTupleElementNames (int cardinality, System.Collections.Immutable.ImmutableArray<string?> elementNames);
static member CheckTupleElementNames : int * System.Collections.Immutable.ImmutableArray<string> -> System.Collections.Immutable.ImmutableArray<string>
Protected Shared Function CheckTupleElementNames (cardinality As Integer, elementNames As ImmutableArray(Of String)) As ImmutableArray(Of String)

Parameters

cardinality
Int32
elementNames
ImmutableArray<String>

Returns

Applies to