I haved moved from VB to C, from C to C++,Now from C++ to C#.
In VB you can make an array of types eg:
type Position
X as Integer
Y as Integer
end type
dim Positions[100] as Position
Positions[1].X = Positions[1].X + 1
How would i go about doing somthing like this in C#.
Type Instances
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jan MontanoRank #1,295 · 1.3K reputationPosted Jul 30, 2007, 9:01 PM EDT
Basically, I'll just introduce it in a struct or a class.
public struct Position
{
}
Position[] pos = new Position[5];
pos[1].x = 5;