1

In C#, is there a type that can hold one of multiple types? I think this is called typesafe union. I am looking for a C# type that is similar to the C++ type std::variant.

pschill
  • 5,055
  • 1
  • 21
  • 42

0 Answers0