O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Built-In Members of the Object Type

Object itself provides several basic methods and properties, which each new class automatically inherits. The developers of the .NET Framework have thus made sure that each object has specific basic functionality that other classes can count on.

Returning the String Representation of an Object with ToString

The ToString method returns a string that “describes” a class instance. Primitive variables, for example, use the ToString method to convert their values into strings—usually even with formatting options. You know that the ToString method is the first point of reference for the implementation of simple polymorphous behavior. You only need to override the ToString method of a class, and leave it to the class ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required