when converting from VB:

2 posts, 0 answers
  1. Shimmy
    Shimmy avatar
    5 posts
    Member since:
    Oct 2007

    Posted 04 Sep 2008 Link to this post

    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)
  2. Daniel
    Daniel avatar
    4934 posts

    Posted 05 Sep 2008 Link to this post

    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

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top