我们可以用visual basic而不是c#构建一个宁静的服务吗? [英] can we build a restful service with visual basic instead of c#?

查看:102
本文介绍了我们可以用visual basic而不是c#构建一个宁静的服务吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想有一些示例代码,用于在Visual Studio中使用visual basic而不是c#构建一个restful服务。那可能吗?如果是的话你可以给我一些样品吗?



谢谢,



John

Hi,

I would like to have some sample code for building a restful service in Visual studio with visual basic instead of c#. Is that possible? And can yo provide me some samples if yes?

Thanks,

John

推荐答案

我希望Visual Basic你的意思是VB.NET,因为与Basic这个词有关的其他一切甚至都不值得一提。



什么样品?如果您已经拥有C#代码,则不需要任何示例。您可以自动,可靠,轻松地将任何项目转换为VB.NET或C#。

请查看我过去的答案:

代码解释,C#到VB.NET [ ^ ],
需要将vb代码转换为c# [ ^ ]。



要翻译整个项目,请使用开源ILSpy。我上面提到的答案解释了如何充分详细地说明。



并且要认真:如果你想在.NET上获得一些帮助,你需要在至少一些C#。使用VB.NET,你找不到太多。



-SA
I hope by "Visual Basic" you mean VB.NET, because everything else related to the word "Basic" does not even worth mentioning.

What samples? You don't need any samples if you already have C# code. You can automatically and reliably and easily translate any project to VB.NET or to C#.
Please see my past answers:
Code Interpretation, C# to VB.NET[^],
Need to convert vb code to c#[^].

To translate the whole project, use open-source ILSpy. My answers referenced above explains how to do it in sufficient detail.

And do be serious: if you want to get some help on .NET, you need to understand at least some C#. With VB.NET along, you cannot find too much.

—SA


这篇关于我们可以用visual basic而不是c#构建一个宁静的服务吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆