I have a type that I consider used as a struct.
But the problem is that it has 6 int fields.
So what solution should I use for this type?
EDIT
The size of the structure with 6 integer fields is 24 bytes, which is very important for traversal. Recommended size for structure not more than 16 bytes
It depends on how you are going to use it?
, .
. , , , .
(# 2), .
(# 3), , . int .
, - . , .
WriteOnce<int[]>?
WriteOnce<int[]>
, , . ( ).
( , .)
, , , , . TwentyFourByteStruct [1000], 24 000 , , , - . TwentyFourByteClass [1000], 4000 8000 ( 32/64- ), TwentyFourByteClass, , 48 . TwentyFourByteClass, 4 048 8 048 . TwentyFourByteClass, 52 000 56 000 .
, , , , . , 16 (.net 16 ), , 1 16 000 .
, , . , .