语法null condition operator jagged array

Tos*_*shi 0 c# null jagged-arrays

如何在锯齿状数组中使用空条件运算符的正确语法?

int[][][] array = new int[5][][];
// fill with data here
bool result = array[0]?.[3]?.[2] ?? == 3;
Run Code Online (Sandbox Code Playgroud)

该参考文献未提供任何有关该信息的信息

https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-conditional-operators

Bac*_*cks 6

bool result = array?[0]?[3]?[2] == 3;
Run Code Online (Sandbox Code Playgroud)