What is an Arrays in C#

Array in c# is a collection of variable of same data type . Arrays can contain elements of any one type, for example, string, int, custom class type etc..

Initialization and Declaration of an array in C#

Array of type string example

Array of type custom class example

Array methods

complete reference guide for Array Methods

Multi Dimensional array in C#

Multidimensional Arrays (C# Programming Guide)

Here are some useful reference links for arrays in c#

  1. Jagged Arrays
  2. Using foreach with Arrays (C# Programming Guide)



About The Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">