jeroenh jeroenh - 7 months ago 105
Vb.net Question

VB.NET equivalent for C# 'dynamic' with Option Strict On

Is there an equivalent for the C# 4 'dynamic' keyword when using type safe VB.NET, i.e. with

Option Strict On
?

Answer

The equivalent is Object in VB.NET but with Option Strict Off. With Option Strict On there's no equivalent. Put another way the dynamic keyword brings Option Strict Off equivalent functionality to C#.