Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Tuple must contain at least two elements.
The following sample generates CS8124:
// CS8124.cs (4,20)
class C
{
void M(int x, () y, (int a) z) { }
}
A valid tuple declaration contains two or more elements, ensuring tuple declarations have two or more elements corrects this error:
class C
{
void M(int x, (int, int) y, (int a, int b) z) { }
}
.NET feedback
.NET is an open source project. Select a link to provide feedback: