|
-
February 23rd, 2006, 02:44 AM
#1
How to create sizeable struct in C#?
In C++, I have a struct like that:
struct SocketData{
int cbsize;
char name[20];
int cmd[3];
char data[1];
};
It means that I can create a sizeable struct but all member datas are stored in continuous memory.
In C#, I know that array is defined as reference so I don't know how to create sizeable struct in C#.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|