PROPERTY

Array.Length

Returns the total element count; for a one-dimensional zero-based array the last valid index is Length - 1 if nonempty.

Formal Syntax & Structure

csharp syntaxcsharp
values.Length

Working Example

Example Snippetcsharp
int count = new int[3].Length;
C# & .NET Reference