Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I think what you are looking for is Array.GetLength which: gets a 32-bit integer that represents the number of elements in the specified dimension of the Array.
Answer
#1: Initial revision
I think what you are looking for is [Array.GetLength](https://docs.microsoft.com/en-us/dotnet/api/system.array.getlength?redirectedfrom=MSDN&view=net-5.0#System_Array_GetLength_System_Int32_) which: > gets a 32-bit integer that represents the number of elements in the specified dimension of the Array.