Is it possible to return value from list or a array without brackets?
For example i have List of integers:
List<int> myIntegers = new List<int>();
myIntegers.Add(1);
myIntegers.Add(2);
myIntegers.Add(3);
int newValue = myIntegers; //normally i should use myIntegers[0]
i want myIntegers to return the first value from list but i want to use it without brackets. Is there a way?
Thanks. M.