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

前端 未结 10 777
滥情空心
滥情空心 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:16

    A good excercise would be trying to understand other people's C# code snippets, and reproducing them yourself from scratch. This means that you'll encounter lots of stuff you need to look up and learn in order to understand to see what those snippets are doing.

    The good news is that, both in C# and VB.Net, the .NET framework does most of the heavy lifting, so you'll probably understand and recognize those parts. I use both C# and VB.Net in my job and I've come to realize that, because of the shared framework, the languages aren't that different from each other in practice.

    I still like C# better, since I feel it results in cleaner code, somehow.

提交回复
热议问题