Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
using int.TryParse
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int next = 1; if (int.TryParse("222", out next)) { Console.WriteLine("parsed: " + next); } else { Console.WriteLine("unparsed: " + next); } } } }
run
|
edit
|
history
|
help
0
Primes
pankaj_sql
Abstract Example
Main3-2
regex: rozważania nad powielaniem grup za pomocą kwantyfikatora
asasa
ProWIN2
Date example
Sum of numbers in string
Numeric to graphical styling using String Extension method