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

Is javascript harder than c#?

904


How do I link two windows forms in c#?

875


Explain the difference between the system.array.copyto() and system.array.clone()?

872


Can constructor be overloaded in c#?

823


Does the system.exception class have any cool features?

942


Can a method return multiple values in c#?

816


Is int a struct in c#?

860


What is the delegate in c#?

863


Define parsing?

832


What is the difference between delegates and events in c#?

908


What is the difference between select and selectmany?

859


What are most desktop applications written in?

896


Is c# still popular?

828


How you will create satellite assemblies?

886


Can an exception be thrown from a catch block?

956