I started to learn about C# and I usually use C++.
There are a bunch of things that I'm trying to adapt, but std::array seems impossible...
I just want to run this kind of code:
public struct Foo {};
public struct Test
{
public Foo value[20];
};
I don't want to allocate each time I use this struct and I don't want to use a class ever...
I saw the fixed keyword but it works only for basic types...
There is no equivalent to something as simple as std::array?
I can even do that in C.
How would you solve this problem? (Even if it's still dynamically allocated..)