Good exercises to transition from coding in VB.NET to C#?

前端 未结 10 781
滥情空心
滥情空心 2021-01-19 01:48

What are some good exercises that an intermediate/advanced VB.NET web programmer should to do gain syntax chops on C#?

I imagine some good examples would be:

10条回答
  •  旧巷少年郎
    2021-01-19 02:26

    Play with your own code using an automatic converter.

    It should work fairly well for most things. You'll mostly just need to figure out how to rework lambdas and some other situations like that.

    Reflector is also very good to help you figure out how to play with converting your code.

    As for learning the differences, see MSDN's white paper on this. It's a bit out of date, but a good starting point. A more complete, but less textual reference-like comparison, is available here.

提交回复
热议问题