-
Notifications
You must be signed in to change notification settings - Fork 6k
What about Nullable struct? #11834
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
Comments
They should not be marked as In short though the problem is the backing |
Thanks for the explanation. I will open an issue in Error.Prone repository to fix this. |
* Add note about nullable value types Fixes #11834 * Update docs/csharp/write-safe-efficient-code.md Co-Authored-By: BillWagner <[email protected]>
Should there be some information here on whether to use or not the in-modifier with Nullable struct?
For example should we have
public void Method(int? arg) {}
or
public void Method(in int? arg) {}
?
ErrorProne.NET for example flags this as a special case: https://github.com/SergeyTeplyakov/ErrorProne.NET/blob/5cc962abfaf0005890dd0a9fba46a9e304a8a450/src/ErrorProne.NET.StructAnalyzers/TypeExtensions.cs#L28
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: