Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is difference between Convert.ToString(variable) and
variable.ToString()

Answer Posted / pavel

object ss =null;

string s1 = ss.ToString(); ---------- exeption
string s2 = Convert.ToString(ss); --- ""

--------------------
int ss =null; --- int can't be converted to null

--------------------
int ss = 1;

string s1 = ss.ToString(); ---------- "1"
string s2 = Convert.ToString(ss); --- "1"

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define using statement in c#?

983


Why is xml called extensible?

921


What is the difference between a class and an object c#?

1034


How do you mark a method obsolete?

1044


What is difference between dictionary and hashtable?

1073


What is the difference between parse and tryparse in c#?

1084


What is the major difference between a custom control and user control?

1104


Define satellite Assembly in .NET?

1040


Are c# destructors the same as c++ destructors?

1214


What is the difference between package and interface?

972


What does static mean in c sharp?

1119


What is a cs file?

1032


Can abstract class have constructor?

919


What are the fundamental principles of oo programming?

1150


What are reflections in c#?

946