Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 24, 2021 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/1f0d3aa9ad4433b71a02379b9688478a to your computer and use it in GitHub Desktop.
Save parzibyte/1f0d3aa9ad4433b71a02379b9688478a to your computer and use it in GitHub Desktop.
static void Main(string[] args)
{
Persona[] arreglo = { new Persona("Luis", 24), new Persona("María", 24) };
int longitud = longitudDeArreglo(arreglo);
int longitudConLength = arreglo.Length;
Console.WriteLine("La longitud según método es {0}, y según .Length es {0}", longitud, longitudConLength);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment