Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ToString vs. ToString() in VB.NET

Tags:

vb.net

What is the difference between using ToString and ToString() in VB.NET?

like image 250
KG Sosa Avatar asked Dec 24 '08 02:12

KG Sosa


People also ask

What is the difference between convert ToString () and ToString () method?

The difference is Convert. ToString() method handles null whereas the ToString() doesn't handle null in C#. In C# if you declare a string variable and if you don't assign any value to that variable, then by default that variable takes a null value.

What is ToString in VB net?

ToString is the major formatting method in the . NET Framework. It converts an object to its string representation so that it is suitable for display.


1 Answers

Nothing. VB.NET allows you exclude the parentheses on any method that doesn't take in an argument.

like image 142
Charles Graham Avatar answered Oct 12 '22 18:10

Charles Graham