CSharp's C++ std::variant

Is there a std::variant in C# like in C++?
If not what is the closest thing to it?
Was this page helpful?