Interviews2 answers
What is the Default Implementation of .ToString() Method?
2 Answers
Nice Explanation for similar kind of C# interview question refer this link c# interview questions
@ http://skillgun.com
Mohit KumarPosted Aug 20, 2014, 2:31 AM EDT
The Default Implementation of .ToString() Method is this.GetType().FullName.
e.g.
Object obj= new Object();
Then obj.Tostring() will return the Fully Qualified Name of obj Type.. Which is In this case "System.Object".
e.g.
Object obj= new Object();
Then obj.Tostring() will return the Fully Qualified Name of obj Type.. Which is In this case "System.Object".
Rajesh Kumar JhaPosted Nov 13, 2013, 7:27 PM EST

