Tuesday, May 8, 2007

Array Declaration in C#.NET

Built-in Types:

int[] intArray = new int[36];

For User-defined types:
ForecastGen.Type.DicDemand[] objdicDemand = new ForecastGen.Type.DicDemand[2];

(DicDemand is a class in ForecastGen.Type namespace)

1 comment:

Nehru Schmidt said...

ArrayLists are not highly entered, every Placement or Retrial will need a throw to get returning to your unique kind. If you need a technique to take a record of a particular kind, ArrayLists are unsuccessful because you could complete in an ArrayList containing any kind.