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

What is marshalling in c#?

819


How many bits is int32?

894


What are indexers in c# .net?

920


What are synchronous and asynchronous operations?

905


Which constructor is called first in c#?

883


What's the difference between an integer and int?

987


When To use HashTable In C#

956


What all details the assembly manifest will contain?

789


What is Assembly. and Describe type of assembly. why most developer happy with private assembly.

918


What is a trace and asset? Explain some differences?

1187


What is sqlconnection in c#?

870


What is byte c#?

789


Is null c# operator?

905


What are primitive types in c#?

919


Do we get an error while executing the “finally” block in c#?

887