In article <#G**************@TK2MSFTNGP10.phx.gbl>, Carlos wrote:
Hi,
I am trying to create a structure.
I want to know if have a way to create a feature like "UNION" in C using
VB.NET
Thanks
Carlos
It depends on what you want to use it for... If it is for P/Invoke, then
yes, you can define something like a Union using marshalling attributes. But,
if it is just for your own use in managed code - then not really. You
could probably write a class to fake it... Using a byte array
internally to store the data.
--
Tom Shelton [MVP]