Parse Invariant Int - CSharp System

CSharp examples for System:String Parse

Description

Parse Invariant Int

Demo Code


using System.Globalization;
using System;//from  w w  w  .  j  av  a2s .  c om

public class Main{
        public static int ParseInvariantInt(this string intString)
		{
			return int.Parse(intString, CultureInfo.InvariantCulture.NumberFormat);
		}
}

Related Tutorials