hello all ,
plz help me to create list can accept any type of lists
thx :)
Hi,
Do you want something such as List> or List
objects ?
Or do you mean just that you want a list in which you culd store any kind of item ?
i meant i want to create List when i assign List
So it seems you are just looking for List
Double check you don't have a base class for what you'll store. Do you really have to mix int and string and other objects types in the same list ?
Finally:
- if you do have some code that fails, it can be better to directly tell us about the problem you have
- similary sometimes it is better to tell about your overall goal (sometimes it can raise suggestion to use another and possibly better way to do what you are trying to do in a particular way or just to better understand your issue)
I'm starting to wonder if your issue could be about this stuff: http://msdn.microsoft.com/en-us/library/dd799517(v=vs.110).aspx You try to assing a list of a given type to a list
of another type if I understood.
thanks :)
沒有留言:
張貼留言