Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1.     public class A
  2.     {
  3.       private int X;
  4.       private int Y;
  5.     }
  6.  
  7.     public class B
  8.     {
  9.       public int C;
  10.       public int Z;
  11.     }
  12.  
  13.     [StructLayout(LayoutKind.Explicit)]
  14.     public struct TempStruct
  15.     {
  16.       [FieldOffset(0)] public A A;
  17.       [FieldOffset(0)] public B B;
  18.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement