I'm not so experienced in C#, I'm used to work in java. I've already asked for something before and some people advised me this. link to my old topic here But I have new problem with this code. The Visual Studio says that "I cannot have instance filed initializers in struct" - so there is some problem but I really don't understand this thing so is somehow possible make this work?? I just need anchors type Vector3 which is matrix or array of arrays - whatever 4x4 In java I'll probably write it public Vector3[][] = new Vector3[4][4];
This is my problematic code:
[StructLayout(LayoutKind.Sequential)] struct BPatch { public Vector3[][] anchors = new Vector3[][] {new Vector3[4],new Vector3[4],new Vector3[4],new Vector3[4]}; public uint dlBPatch;// Display list public uint texture;// Texture }