An Attempt at building at least some of C# corelib for EFI applications. Inspired by https://github.com/MichalStrehovsky/zerosharp to see if this possible.
As many public functions and properties as possible have been added with EFI_TIME forming the backend for DateTime.Now.
The lack of exception support leads to most of the constructors have slightly modified results to normal with invalid inputs being replaced with defaults rather than causing crashes.
I am currently considering if NotNullWhenAttribute, TypeCode, IConvertible and IFormatProvider are worth adding for the small number of functions they add or make identical to the dotnet version.
As many public functions and properties as possible have been added with EFI_TIME forming the backend for DateTime.Now.
The lack of exception support leads to most of the constructors have slightly modified results to normal with invalid inputs being replaced with defaults rather than causing crashes.
I am currently considering if NotNullWhenAttribute, TypeCode, IConvertible and IFormatProvider are worth adding for the small number of functions they add or make identical to the dotnet version.