Uh oh!
There was an error while loading. Please reload this page.
Expand System.Runtime.InteropServices.NFloat to support the APIs required by Xamarin - #64234
Conversation
ghost
commented
Jan 24, 2022
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
tannergooding
commented
Jan 24, 2022
Uh oh!
There was an error while loading. Please reload this page.
rolfbjarne
left a comment
There was a problem hiding this comment.
Looks like two operators are reversed?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
| [NonVersionable] | ||
| public static bool operator !=(NFloat left, NFloat right) => left._value != right._value; | ||
| /// <summary>Compares two values to determine which is less.</summary> |
There was a problem hiding this comment.
Nit: This description seems a bit misleading, as it tells you whether left is less than right but not whether right is strictly less then left.
Consider adopting the existing doc terminology that float/double use, e.g. "Returns a value that indicates whether a specified Double value is less than or equal to another specified Double value."
That goes for all these doc comments.
There was a problem hiding this comment.
Consider adopting the existing doc terminology
I always forget that we have APIs exposed here that are functionally unavailable and will never be called 👍
I'll update this in a follow up PR as I need to also update IComparisonOperators and a few other places accordingly.
stephentoub
left a comment
There was a problem hiding this comment.
Gave it a quick skim and generally LGTM.
tannergooding
commented
Jan 31, 2022
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1774427144 |
This resolves#63801.
Tests still need to be added.