var x = Expression.New(constructor, parameter1, parameter2);
VB:
Private x = Expression.New(constructor, parameter1, parameter2)
Vb realizes the .New as a call to the constructor. Use .[New] as C# means to call a method named New. This differs than using base in C# that translates to a call to the MyBase.New . The result should be:
VB:
Private x = Expression.[New](constructor, parameter1, parameter2)
C#:
VB:
Vb realizes the .New as a call to the constructor. Use .[New] as C# means to call a method named
New
. This differs than using base in C# that translates to a call to theMyBase.New
. The result should be: VB: