I need to port some C++ code that I wrote 10 years ago to C#. I'm not a C# expert and I've been told that using structures in C# is bad practice.
This is the original C++ structure:
typedef struct TacticalLineStruct {
int NumGroups; // The number of groups in the struct
int GroupID[MAX_UNITS]; // which Group the vertex belongs to
int EdgeList[MAX_UNITS * MAX_UNITS][2]; // An array of edges
float EdgeWeight[MAX_UNITS * MAX_UNITS]; // The weight for each edge
int NumBelowThreshold;
POINT GroupCenter[MAX_UNITS]; // The geographical center of each group
int NumEdges;
} TacticalLineStruct;
What is the proper way to do this in C#?