-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Fix comments with name of CA2020 rule #118316
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
Conversation
@@ -473,7 +473,7 @@ public static void WriteIntPtr(IntPtr ptr, int ofs, IntPtr val) | |||
#if TARGET_64BIT | |||
WriteInt64(ptr, ofs, (long)val); | |||
#else // 32 | |||
#pragma warning disable CA2020 // Prevent from behavioral change | |||
#pragma warning disable CA2020 // Prevent behavioral change |
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.
Can we get rid of these pragma warning disable instead? E.g. WriteInt32(ptr, ofs, (int)(nint)val);
?
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.
Can we change the method signature to:
public static void WriteIntPtr(IntPtr ptr, int ofs, nint val)
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.
Sounds reasonable to me.
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.
I did this for all Marshal
methods where appropriate: #118335
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.
And Interlocked
: #118336
Tagging subscribers to this area: @dotnet/area-system-runtime |
Superseded by the two PRs linked above |
No description provided.