Suppose I have a generic list of some Strings :
List<String> lstCollection = new List<string>();
lstCollection.Add("Name");
lstCollection.Add("FirstName");
lstCollection.Add("LastName");
lstCollection.Add("City");
lstCollection.Add("State");
In order to get the index from the above collection, one can use the following :
1. //integer variable to hold the index value
int index = 0;

sherry shairPosted Apr 18, 2014, 7:00 AM
got it Thanks Gupta
Saineshwar BageriPosted Apr 16, 2014, 4:39 AM
nice