Is it possible? To give a size to an array that is a member of a struct at coding time?
Like in C++ I would have done this:
but I can't do that in C# can I? And it doesn't look like I can do it using NEW outside a function either can I? And I can't have a struct with a constructor without parameters in C# can I?Code:struct MD2_Tri{ float point[3]; char morro; };
This sounds stupid. So if I want an sized array in my struct in C# I need to have a constructor with a parameter that I don't even use? Please tell me that I am totaly wrong here, and that me puking all the time have made me hurl up half my brain....
- ØØ -




Reply With Quote