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

jeroenh picture jeroenh · May 23, 2010 · Viewed 53.8k times · Source

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

Answer

Darin Dimitrov picture Darin Dimitrov · May 23, 2010

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#.