C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 257 Page Views: 

Write a code to convert string to integer (int) data type.



Posted By: Avi Date: 1 October 2010 11:53:31 AM
 Answer:

class conver { public static void Main() { String a = "2000"; int x = Convert.ToInt32(a); Console.WriteLine(x); } }


Posted By: avibtech


Date: 1 October 2010 11:53:31 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image yz8PXk
Related Questions
C# : What do you mean by satellite assembly?

What do you mean by satellite assembly?

When there is arequirement of localising the application i.e we want to mak the application customiz....
Category: C# Date: 10/1/2010 11:43:31 AM
C# : What are collection classes?

What are collection classes?

In >net there is a special framework which provide special classes for data storage and retrieval....
Category: C# Date: 10/1/2010 11:42:31 AM
C# : Which specific group can access a protected method?

Which specific group can access a protected method?

It can be accessed by the Classes within the same assembly and the Classes derived from the declarin....
Category: C# Date: 10/1/2010 11:41:31 AM
C# : Differentiate between structure and class in c#.

Differentiate between structure and class in c#.

1. Classes are refrence type and uses heap whereas Structure are value type and uses stacks for bei....
Category: C# Date: 10/1/2010 11:40:31 AM
C# : .int keyword of C# maps with which .Net type?

.int keyword of C# maps with which .Net type?

a) System.Int16 b) System.Int32 c) System.Int64 d) System.Int128
Category: C# Date: 10/1/2010 11:39:31 AM