M Moty Michaely Jun 3, 2007 #2 What is the C# equivalent of a C++ union ??? Click to expand... Hi Peter, If the purpose is for customized memory layour (for structs) check this article out: http://msdn2.microsoft.com/En-US/library/acxa5b99(VS.80).aspx Hope this helps. Moty
What is the C# equivalent of a C++ union ??? Click to expand... Hi Peter, If the purpose is for customized memory layour (for structs) check this article out: http://msdn2.microsoft.com/En-US/library/acxa5b99(VS.80).aspx Hope this helps. Moty
? =?ISO-8859-1?Q?Arne_Vajh=F8j?= Jun 3, 2007 #3 Peter said: What is the C# equivalent of a C++ union ??? Click to expand... C# does not have unions. To help you with an alternative we need to know the real problem. Depending on the circumstances BitConverter, BinaryReader/Writer and StructLayout may all be solutions. Arne
Peter said: What is the C# equivalent of a C++ union ??? Click to expand... C# does not have unions. To help you with an alternative we need to know the real problem. Depending on the circumstances BitConverter, BinaryReader/Writer and StructLayout may all be solutions. Arne
A Aneesh P Jun 3, 2007 #4 C# does not have unions. To help you with an alternative we need to know the real problem. Depending on the circumstances BitConverter, BinaryReader/Writer and StructLayout may all be solutions. Arne Click to expand... StructLayout is usually used for this purpose. Depends on requirements it may change.
C# does not have unions. To help you with an alternative we need to know the real problem. Depending on the circumstances BitConverter, BinaryReader/Writer and StructLayout may all be solutions. Arne Click to expand... StructLayout is usually used for this purpose. Depends on requirements it may change.
J Jon Harrop Jun 3, 2007 #5 Peter said: What is the C# equivalent of a C++ union ??? Click to expand... Probably run-time type testing.
Peter said: What is the C# equivalent of a C++ union ??? Click to expand... Probably run-time type testing.