Yesterday's evening I was navigating and writing some code, line after line, I took a tour on the SharpDevelop Web Site, I love that tool, in the past years frequently I took a tour in the source code, to learn, to see what has been done.
So I went to the SharpDevelop Wiki and I found a wonderful online tool, a Code Converter. The tool is exposed as Web service and makes use of NRefactory to convert code.
The link is http://codeconverter.sharpdevelop.net/Default.aspx here you can find:
- a class converter:
the supported convertsions are:
- C# to VB.NET
- C# to Boo
- VB.NET to C#
- VB.NET to Boo
- a snippet converter:
the supported convertions are C# to VB.NET and vice versa.
- a code formatter:
It's possible too to use these features in client applications directly using and calling the web service.
As example I tried to format and colorize an xml chunk as:
<provider name="testProvider" refTo="XmlProvider, TestLib.Providers" />
the result is:
1: <configuration target="StandardDatabaseConfig">
2: <provider name="testProvider" refTo="XmlProvider, TestLib.Pr