C ++ Union in C #
Ich übersetze eine in C ++ geschriebene Bibliothek nach C #, und das Schlüsselwort 'union' existiert einmal. In einer Struktur
Wie kann ich es richtig in C # übersetzen? Und was macht es? Es sieht ungefähr so aus;
struct Foo {
float bar;
union {
int killroy;
float fubar;
} as;
}