ArrayList alcollect = new ArrayList(); // Add individual items to the collection string str = "learn csharp"; alcollect.Add(str); //find position of object Console.WriteLine(alcollect.IndexOf(str)); //csharp/7611