-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateTime
and TimeSpan
are not handled as primitive types anymore
#2788
DateTime
and TimeSpan
are not handled as primitive types anymore
#2788
Conversation
6c61c5d
to
253c7fc
Compare
- Remove these throughout the code base. - Add DateTime::NewObject and rework code accordingly. - Update data type lookup for DateTime and TimeSpan so they end up as value type types.
253c7fc
to
4b07c76
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are quite some changes. Is there any impact on any of the existing native code using those elements? I'm thinking of everywhere we are using TimeSpan and DateTime in the parameters of a function for example.
Everything that was somehow impacted by this change has been taken care of and thoroughly tested. |
My question was on the native side, not on the C# side where, it doesn't matter at all. I fully trust you that all has been tested :-) I just want to get an understanding if anything could be impacted somehow by side effect. |
Answering your question above: no impact on the existing code, apart from what was already changed to accommodate these changes. |
…anymore (nanoframework#2788)" This reverts commit a90a2ab.
Description
DateTime
andTimeSpan
so they end up as being treated like value type types.Motivation and Context
How Has This Been Tested?
Screenshots
Types of changes
Checklist