Categories
7.0 7.5 C#.NET HOW TO Microsoft VB.NET Visual Studio Windows Mobile Windows Phone

HOW TO make VB to C# or C# to VB conversion code

With this HOW TO I would like to put together tips to make the code conversion VB to C# or C# to VB.

VB C#
Asc Convert.ToInt32();
Chr Convert.ToChar();
Len String.Length();
Mid String.Substring();
ChrW(65) System.Convert.ToChar(65).ToString();
AscW('A')
System.Convert.ToInt32('A').ToString();

This post will be updated continuously by inserting each time new information.

Any suggestion is welcome.

Did my HOW TO help you? Leave a reply.

Categories
C#.NET Microsoft Visual Studio

Visual Studio C#.Net – “Cannot convert method group ‘ToString’ to non-delegate type ‘string’. Did you intend to invoke the method?”

Cannot convert method group ‘ToString’ to non-delegate type ‘string’. Did you intend to invoke the method?

in Italian:

Impossibile convertire il gruppo di metodi ‘ToString’ nel tipo non delegato ‘string’. Si desiderava richiamare il metodo?

Solution:
You miss the parentheses: ToString()

Did my solution solve your problem?