I have defined a new class type called Hotspot
. I need 2 dynamic array of Hotspot (I used List) and a third one that allow me to "switch" between them. Here my code:
List<Hotspot> items = new List<Hotspot>();
List<Hotspot> locations = new List<Hotspot>();
Hotspot[][] arrays = new Hotspot[][]{items, locations};
but arrays
doesn't work. I just need it so I can easily access to items/locations
array.
In F# I did it in this way:
let mutable items = new ResizeArray<Hotspot>()
let mutable locations = new ResizeArray<Hotspot>()
let arrays = [|items; locations|]
but I can't do the same thing in C#. Some help?