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 / sanjib ghosh

Dim salary As Int16
Dim oldSalary As String = salary.ToString()
Dim newSalary As String = Convert.ToString(salary)
MsgBox(oldSalary & "")
MsgBox(newSalary & "")
''No exception throw

both work same function

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define an abstract class?

858


Explain about finalize method?

879


Is string value type c#?

835


Can a struct be null?

864


In .Net, what is an assembly? Also explain the type of assembly.

859


what is c# command?

930


How do you achieve polymorphism in c#?

841


Is as keyword in c#?

811


What is the difference between class and namespace?

914


What is a web service in c#?

1033


What do you mean by generic class in c#?

870


Can properties be private in c#?

846


Illustrate serialization?

896


What are the desktop applications?

822


Is hashset serializable c#?

910