It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#2 (permalink) |
|
Junior Member
Join Date: Jul 2006
Age: 30
Posts: 15
|
There is no union in C# nor in VB.NET but union but you can use the FieldOffset attribute to have a memory represenation: here is a sample hack to use union:
Unions in C# -- [StructLayout(LayoutKind.Explicit)] public struct MyUnionWithCategories { [FieldOffset(0)] public int Category; [FieldOffset(0)] public char CategoryRep; [FieldOffset(0)] public long CategoryIndicator; } -- |
|
|
|