This is a migrated thread and some comments may be shown as answers.

when converting from VB:

1 Answer 64 Views
Code Converter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shimmy
Top achievements
Rank 1
Shimmy asked on 05 Sep 2008, 04:01 AM
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

Sort by
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).

CarlosAg CodeTranslator
DeveloperFusion online translator
SharpDevelop Snippet Converter

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Code Converter
Asked by
Shimmy
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or