Closed egkareem closed 4 years ago
Hello @egkareem .
The first error happen here
Console.WriteLine("TimeSpan between {0}" +
" and {1} is {3}", date1, date2, value);
You currently use '{3}' when there is no argument at this position.
You probably want to do this:
Console.WriteLine("TimeSpan between {0}" +
" and {1} is {2}", value, date1, date2);
The second error will appears here:
string s1 = "date1.Subtract(date2)";
s1.Execute<TimeSpan>();
The Execute method doesn't know about your local variable date1
and date2
, you need to provide it:
string s1 = "date1.Subtract(date2)";
s1.Execute<TimeSpan>(new { date1, date2 });
Let me know if that helped you to get your Fiddle working.
Best Regards,
Jon
Thank you very much for clearing this out. I am sure it will work, so we can consider this issue close. Special thanks for the quick and detailed response 👍
Hello I am new and I am trying to work out this. I have this code (I am using .NET Fiddle):