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

If a method's return type is void, can you use a return keyword in the method?

887


What are reflections in c#?

901


What do you mean by jagged array?

911


What is native image generator (ngen.exe)?

1227


Explain the different ways a method can be overloaded?

876


What is a int in c#?

882


Can arraylist hold primitive types?

1038


What is difference between il and dll ?

1008


What is mvc in c#?

892


Define boxing and unboxing in c#?

857


Is there regular expression (regex) support available to c# developers?

974


What is difference between method overriding and method overloading?

1049


What are Types of assemblies that can be created in dotnet

1031


Does c# support properties of array types?

926


Define the term immutable ?

1056