S
Sherif ElMetainy
Hello
I was just got VS 2005 preview, and was trying generics.
I tried the following code
int[] intArray = new int[100];
IList<int> intList = (IList<int>) intArray;
it didn't compile, also the following didn't compile
IEnumerable<int> intEnumerable = (IEnumerable<int>)intArray;
IMHO it makes perfect sense that int[] should implement IList<int>,
IEnumerable<int>, etc, since it implements the non-generic IList, and
IEnumerable.
Best regards,
Sherif
I was just got VS 2005 preview, and was trying generics.
I tried the following code
int[] intArray = new int[100];
IList<int> intList = (IList<int>) intArray;
it didn't compile, also the following didn't compile
IEnumerable<int> intEnumerable = (IEnumerable<int>)intArray;
IMHO it makes perfect sense that int[] should implement IList<int>,
IEnumerable<int>, etc, since it implements the non-generic IList, and
IEnumerable.
Best regards,
Sherif