M
Matthew W. Jackson
I had a question about the "using" statement and Generics in the next
version of C#, and I was directed to this newsgroup. My question is: Will
the following syntax be valid?
using Int32ArrayList = System.GCollections.ArrayList<Int32>;
....
Int32ArrayList myArrayList = new Int32ArrayList();
I (along with many others) use a similar method in C++ with typedefs, and to
me it really makes STL code a lot cleaner. I see no reason why this should
not be possible in Whidbey C#, but I may be missing something. This is of
course a trivial example, but in cases where there are several template
parameters (and even moreso, nesting), it really helps.
I don't have time to install Rotor and Gyro to find out if it works in that
environment, so I thought I'd ask here first.
Thanks in advance,
Matthew W. Jackson
version of C#, and I was directed to this newsgroup. My question is: Will
the following syntax be valid?
using Int32ArrayList = System.GCollections.ArrayList<Int32>;
....
Int32ArrayList myArrayList = new Int32ArrayList();
I (along with many others) use a similar method in C++ with typedefs, and to
me it really makes STL code a lot cleaner. I see no reason why this should
not be possible in Whidbey C#, but I may be missing something. This is of
course a trivial example, but in cases where there are several template
parameters (and even moreso, nesting), it really helps.
I don't have time to install Rotor and Gyro to find out if it works in that
environment, so I thought I'd ask here first.
Thanks in advance,
Matthew W. Jackson