Convert Code From C# To VB.NET And From VB.NET To C#

Telerik code converter provides free code conversion from C# to VB.NET and vice-versa.

Introduction
 
In today's programming era, there any many technologies and languages that developers use in application development. To stay current in the market, we need to work on more languages. These days tools are helping developers a lot.  
 
Sometimes, we find that we are expert in C#, .NET but we are not aware of VB .NET syntax, or vice-versa. Telerik code converter provides free code conversion from C# to VB.NET and just opposite of it.
 
 
 Telerik Code Converter
 
Example
 
I have the below C# code.
  1. public void GetData()
  2. {
  3.    string strSQL = "select top 10 * FROM tbNews order by newsid desc";
  4.    DataTable dt = new DataTable();
  5.    dt = objDataAccess.GetDataTable(strSQL);
  6.    gvUploadFiles.DataSource = dt;
  7.    gvUploadFiles.DataBind();
  8. }
And I converted it into VB.NET.
  1. Public Sub GetData()
  2.    Dim strSQL As String = "select top 10 * FROM tbNews order by newsid desc"
  3.    Dim dt As DataTable = New DataTable()
  4. dt = objDataAccess.GetDataTable(strSQL)
  5.    gvUploadFiles.DataSource = dt
  6.    gvUploadFiles.DataBind()
  7. End Sub
We can convert code from VB .NET to C# .NET also via the swap button.
 
Summary
 
If you have some alternate way to achieve this kind of requirement, then please share. In case of some query, please leave your comments.