high i m beginner of c# languages & i dont know how it works . so pls send the syntax of arrays.

08-27-2010

Basant

search a array

08-27-2010

theoobe

Hello Basant.

As you are a beginner to C# I would like to point out that Arrays are fixed length and Lists are dynamic length. More often you would want to use Lists unless you are dealing with constant variables predetermined. However here is a little demonstration, showing some Array syntax and examples, and then finally how to search by condition without the hassle of using for loops.

Code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;