You can convert the string to integer using Convert.ToInt32() function
int intTemp = Convert.ToInt32(Console.ReadLine());
More Related Contents:
- Difference between Console.Read() and Console.ReadLine()?
- How do I read a specified line in a text file?
- Determine the number of lines within a text file
- C# How to loop user input until the datatype of the input is correct?
- How to convert a character in to equivalent System.Windows.Input.Key Enum value?
- Simulate keyboard input in C#
- Taking input from a joystick with C# .NET
- C# winform,what‘s “Form1.Close()" mean?
- Convert List to List
- How do you get the index of the current iteration of a foreach loop?
- if statements matching multiple values
- What is the best scripting language to embed in a C# desktop application? [closed]
- What is the difference between Server.MapPath and HostingEnvironment.MapPath?
- How to use dependency injection with an attribute?
- WCF ServiceHost access rights
- Add Header and Footer for PDF using iTextsharp
- Multi Value Dictionary?
- Launching a process in user’s session from a service
- Escape button to close Windows Forms form in C#
- JsonValueProviderFactory throws “request too large”
- WPF ListView: Attaching a double-click (on an item) event
- How to use SqlCommand to CREATE DATABASE with parameterized db name?
- Difference between returning and awaiting a Task in an async method [duplicate]
- C# list.Orderby descending
- C# 3.0 Auto-Properties – Is it possible to add custom behaviour?
- Hashing with SHA1 Algorithm in C#
- Uploading image in ASP.NET MVC
- Serializing a Nullable in to XML
- Making an entire row clickable in a gridview
- Are there any OK image recognition libraries for .NET?