简体   繁体   English

C#Web服务v / s VB.net Web服务

[英]C# webservice v/s VB.net webservice

What is the best language to develop a webservice whether C# webservice or VB.net webservice. 开发Web服务的最佳语言是C#Web服务还是VB.net Web服务。 Both use XML to communicate. 两者都使用XML进行通信。 SOAP is used to transfer the data, WSDL is used for describing the services UDDI is used to get a list of services available. SOAP用于传输数据,WSDL用于描述服务UDDI用于获取可用服务的列表。 But what difference does it make to develop webservice in C# or VB.net ? 但是在C#或VB.net中开发Web服务有什么区别?

There are no relevant differences for your case. 您的情况没有相关差异。

As long as you stay with the .NET framework you can always choose between VB & C#. 只要您使用.NET框架,就始终可以在VB和C#之间进行选择。

They real question you should ask is: What .NET framework should I use? 您应该问的真正问题是: 我应该使用哪个.NET框架? .NET Core 2 or .NET 4.7? .NET Core 2或.NET 4.7? This makes a much more relevant difference. 这带来了更多相关的差异。

The only difference is the syntax. 唯一的区别是语法。 use your favorite syntax. 使用您喜欢的语法。 Already, your vb or c# code compile to IL/CIL/MSIL code. 您的vb或c#代码已经编译为IL / CIL / MSIL代码。

  • VB->CLR(Common Language Runtime)->IL code VB-> CLR(公共语言运行时)-> IL代码
  • C#->CLR(Common Language Runtime)->IL code C#-> CLR(公共语言运行时)-> IL代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM