ValueTuple<T1,T2>.ITuple.Length プロパティ
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ValueTuple
にある要素の数を取得します。
property int System::Runtime::CompilerServices::ITuple::Length { int get(); };
C#
int System.Runtime.CompilerServices.ITuple.Length { get; }
member this.System.Runtime.CompilerServices.ITuple.Length : int
ReadOnly Property Length As Integer Implements ITuple.Length
ValueTuple<T1,T2> オブジェクト内の要素数、2。
プロパティは ValueTuple<T1,T2>.ITuple.Length 、明示的なインターフェイスの実装です。 これを呼び出すには、オブジェクトを ValueTuple<T1,T2> キャストするか、インターフェイス オブジェクトに変換する ITuple 必要があります。
製品 | バージョン |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 |
.NET Framework | 4.7.1, 4.7.2, 4.8 |
.NET Standard | 2.1 |