Adding missing function
Posted: Wed Aug 12, 2015 9:38 pm
Hello,
I have start testing CSHtml5, it looks good. But I have with a small test about 100 errors with unsupported functions.
How can I implement missing functions ?
For example, the is the function DateTime.AddDays implemented but not DateTime.AddHours. Normaly I can implement AddHours in c# code like:
or to implement a SortedList is code ...
or Dictionary.ContainsKey ...
Thank you.
Best regards
Uwe
I have start testing CSHtml5, it looks good. But I have with a small test about 100 errors with unsupported functions.
How can I implement missing functions ?
For example, the is the function DateTime.AddDays implemented but not DateTime.AddHours. Normaly I can implement AddHours in c# code like:
Code: Select all
public static DateTime AddHours(double hours) {
return DateTime.AddDays(hours / 24);
}
or to implement a SortedList is code ...
or Dictionary.ContainsKey ...
Thank you.
Best regards
Uwe