Search code examples
.nettypesvariantdelphi-prism

Is there a replacement for variant data type in .NET?


I would like to know if there is a variant data type in Delphi prism.

I am converting a Delphi win32 application for Delphi Prism .NET environment.


Solution

  • The closest thing is Object as all types derive from it. This is not a great solution though.

    With .NET 4.0 the dynamic keyword was introduced that may be closer to what you are looking for.

    A direct analogue does not exist.