fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. double result;
  8. System.Diagnostics.Debug.WriteLine(double.TryParse("0.2", NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out result));
  9. System.Diagnostics.Debug.WriteLine(result);
  10. }
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(8,75): error CS0103: The name `NumberStyles' does not exist in the current context
prog.cs(8,107): error CS0103: The name `CultureInfo' does not exist in the current context
prog.cs(8,59): error CS1502: The best overloaded method match for `double.TryParse(string, System.Globalization.NumberStyles, System.IFormatProvider, out double)' has some invalid arguments
/usr/lib/mono/2.0/mscorlib.dll (Location of the symbol related to previous error)
prog.cs(8,59): error CS1503: Argument `#2' cannot convert `object' expression to type `System.Globalization.NumberStyles'
Compilation failed: 4 error(s), 0 warnings
stdout
Standard output is empty