I will have an array like the following:
string[] arr1 = { "one", "two", "three" };
How could I do to count the total number of elements in my array. Try adding Count
but it returns me:
El nombre 'arr1.Count' no existe en el contexto actual.
If there is no such method, is there any simple way or even using loops to count the number of elements of an array in C #?