VB和C#语法指南

VB和C#语法指南

问题描述:


我多年来一直是VB开发人员,而且我对C#语法的了解很差。出于几个原因,我将开始研究一些关于C#的项目。有没有人知道描述C#和VB语法之间差异的文档?

例如:

VB         

I'm a VB developer for many years and my knowledge on C# syntax is poor. For several reasons, I would to start working on some projects on C#. Does anybody know a document describing the differences between the C# and VB syntax?
For instance:
VB         


选择案例陈述


byref关键字

=运营商

将myVar调暗为myType          


C#


switch-case statement


< methodname>

==运算符

请告诉我。   

您好,

我建议您使用此工具:  http://converter.telerik.com/

I recommand you to use this tool : http://converter.telerik.com/

这是一个VB< ; =&GT; C#转换器。

This is a VB <=> C# converter.

复制并粘贴VB代码,你将拥有C#版本。

Copy and paste you VB code and you will have the C# version.