fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. // your code goes here
  8. string opeDesc = "・array[i].temp ← i * 10";
  9. int indentCount;
  10. var result = int.TryParse((opeDesc).Substring, out indentCount);
  11.  
  12. int r = indentCount;
  13. }
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(10,20): error CS1502: The best overloaded method match for `int.TryParse(string, out int)' has some invalid arguments
/usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
prog.cs(10,39): error CS1503: Argument `#1' cannot convert `method group' expression to type `string'
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty