Compiler error by using ToString(string format)
Posted: Mon Jun 23, 2014 3:43 pm
The code above will getting the compile error CS1501 - "Keine Überladung für die Methode "ToString" nimmt 1-Argumente an. (CS1501)".
In "plain" Visual Studio this will be compiled without any problems. Why the ranorex studio can't compile this code?
Code: Select all
TimeSpan interval = new TimeSpan(0, 32, 45);
// Escape literal characters in a format string.
string fmt = @"mm\:ss\ \m\i\n\u\t\e\s";
string test = interval.ToString(fmt);