News for hackers. Stuff that matters.
Re:Explore union types in C# 15 by pjmlp on Thursday April 09, 2026 @08:00AM (#47702533)
OS APIs for one, at least there are some Win32 calls that take unions if I remember correctly.

One of the reasons .NET had Managed C++, replaced by C++/CLI (nowadays C++20 compliant, minus modules), is exactly that P/Invoke (and RCW/CCW) cannot represent everything.

Which they don't want to expose on .NET type system directly.

There are no comments on this comment yet.