Home

How to override methods in dotNet C#

E-mail Print
Share/Save/Bookmark
Sometimes it is useful to override default methods. One of the most commonly overridden is method ToString().
public override String ToString()
{
return "I want my own string representation of this object!";
}
Hits: 839
Comments (0)Add Comment

Write comment

busy
Last Updated ( Friday, 24 October 2008 19:20 )  

Sponsored Links

My friends

Bookingpoint
partner websites

Donate

Do you find content useful? Please donate so I can cover my hosting expenses! Thanks!