> initialize DSYears with a collection initialization expression, thus
> keeping everything in one expression instead of multiple statements:
> 
>       ArrayList DSYears = new ArrayList () { 1 };
> 
> Of course, C# 3.0 hasn't been finalized, and it doesn't exist in mcs

You could use the following:

ArrayList DSYears = new ArrayList(new object[] { 1 });

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to