Showing posts with label Convert.ToString. Show all posts
Showing posts with label Convert.ToString. Show all posts

Tuesday, 21 February 2012

What are the steps to create a webservice and consume it ?

Note :- For this question this post will make a attempt by creating a simple webservice and explaining steps to acheive it. A simple webservice will be created which takes two number and gives addition result of the two number. Definitely the interviewer will not expect such a detail answer but this book will explain you in detail so that you are on right track during interview.


This webservice will add two numbers and give to the calling client. All the below steps are according to VS2008 beta editor :-

  • First create a website by clicking on File -- New WebSite.

Friday, 4 November 2011

What is the difference between Convert.ToString and .ToString() method ?

Just to give an understanding of what the above question means seethe below code.

int i =0;
MessageBox.Show(i.ToString());
MessageBox.Show(Convert.ToString(i));


We can convert the integer “i” using “i.ToString()” or “Convert.ToString” so what’s the difference.

The basic difference between them is “Convert” function handles