Dim foo = 56 should be converted to var foo = 56;
rather than object foo, which is actually wrong
I assume the opposite is equal (C#~VB)
1 Answer, 1 is accepted
0
Daniel
Telerik team
answered on 05 Sep 2008, 07:23 AM
Hello Shimi,
First I want to mention that all translators I am aware of are using this conversion rule. Probably the reason is that they are trying to be as compatible as possible. I suppose you know that the implicit type declarator var is introduced in C# 3.0 (NET 3.5).