i want to creat a list of an object
so i used ArrayList in C#
after declaring a class book
i declare the array list as follwing:
private ArrayList mobileStore = new ArrayList();
then i have an object of class , say Mobile
and finally i tried to add the object m1 to the array list
but the error occurs !!
Invalid token '(' in class, struct, or interface member declarationInvalid token ')' in class, struct, or interface member declaration
then i tried anoter way :
List<Mobile> store = new List<Mobile>();
but the problem was the same ????
how can i fix it ?