Click here to Skip to main content
15,898,538 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
Sergey Alexandrovich Kryukov 18-Aug-14 18:41pm    
What exactly do you mean by "Visual Basic"?
—SA
Member 11020439 19-Aug-14 10:47am    
Yes, I meant vb.net. Thanks for your suggestions and ideas!

John
Sergey Alexandrovich Kryukov 19-Aug-14 11:28am    
Then forget the difference between C# and VB.NET, both are .NET languages with almost identical capabilities.
Besides, if you have code sample in one language, you can automatically translate it into another one.
Will you accept my answer formally (green "Accept" button)?
—SA
Member 11020439 19-Aug-14 12:21pm    
Hi SA,

I tried the online converter http://www.developerfusion.com/tools/convert/csharp-to-vb/?batchId=29c030a1-e33a-4afa-baeb-c8655979973e and it worked perfect to me. Thanks a lot !
[no name] 18-Aug-14 19:12pm    
Please learn to do your own basic research, http://www.google.com/search?q=vb.net+restful+web+service+example

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900