I cannot compile it, I have problem with array of struct
. Is it possible to define it at struct or what?
struct MojaStruktura
{
public int CeoBroj1;
public int CeoBroj2;
string[] str = new string[5]; // here is the problem that I'd like to solve
}
class Program
{
static void Main(string[] args)
{
MojaStruktura m = new MojaStruktura();
Console.WriteLine(System.Runtime.InteropServices.Marshal.SizeOf(m));
Console.ReadLine();
}
}