Skip to content

Add a note regarding supressing CS0282#32170

Merged
BillWagner merged 1 commit intodotnet:mainfrom
AshleighAdams:patch-1
Nov 4, 2022
Merged

Add a note regarding supressing CS0282#32170
BillWagner merged 1 commit intodotnet:mainfrom
AshleighAdams:patch-1

Conversation

@AshleighAdams
Copy link
Contributor

Summary

Just added a note, incase anyone else stumbles on this The alternative was to disable it with a directive, which is less expressive, and no hint in the anylzer/quick actions showed this attribute as a possible solution

Dotnet provides the means to inhibit this warning message, but it was not clear from the documentation how to properly suppress the warning and express intent that the layout of the struct was not significant

Dotnet provides the means to inhibit this message, but it was not clear from the warning documentation how to properly supress the warning and express intent that the layout of the struct was not significant
@dotnet-bot dotnet-bot added this to the November 2022 milestone Nov 3, 2022
@ghost ghost added the community-contribution Indicates PR is created by someone from the .NET community. label Nov 3, 2022
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM @AshleighAdams

I'll :shipit: as soon as the build finishes.

@BillWagner BillWagner enabled auto-merge (squash) November 4, 2022 15:26
@BillWagner BillWagner merged commit 9fff0b1 into dotnet:main Nov 4, 2022
CamSoper pushed a commit that referenced this pull request Nov 4, 2022
* fixes #21591 (#32186)

* fixes #21591

* update file path

Co-authored-by: Tarun Jain <v-tjain@microsoft.com>

* fixes #31983 (#32157)

* fixes #31983

* Update docs/architecture/modern-web-apps-azure/work-with-data-in-asp-net-core-apps.md

Co-authored-by: David Pine <david.pine@microsoft.com>

Co-authored-by: Tarun Jain <v-tjain@microsoft.com>
Co-authored-by: David Pine <david.pine@microsoft.com>

* Fix issue - #31462 - Observations in maui-ebook (#32111)

Co-authored-by: Tarun Jain <v-tjain@microsoft.com>

* fixes #31985 (#32156)

* fixes #31985

* Update docs/architecture/modern-web-apps-azure/work-with-data-in-asp-net-core-apps.md

Co-authored-by: David Pine <david.pine@microsoft.com>

Co-authored-by: Tarun Jain <v-tjain@microsoft.com>
Co-authored-by: David Pine <david.pine@microsoft.com>

* Update quest.yml (#32188)

* Update quest.yml (#32189)

* Add a note regarding supressing CS0282 (#32170)

Dotnet provides the means to inhibit this message, but it was not clear from the warning documentation how to properly supress the warning and express intent that the layout of the struct was not significant

* Add defaultconstraint_CSharpKeyword (#32184)

* Update quest.yml (#32190)

* Update quest.yml

* Update quest.yml

* Update using-properties.md (#32185)

* Create quest-bulk.yml (#32192)

* -r changed from --results-directory to --runtime in .NET 7 (#32163)

* Revive Point of Service docs from the dead (#32079)

* initial commit

* Fix indent

* better paths

* little tweaks

* fix link

* Update docs/framework/additional-apis/index.md

Co-authored-by: David Pine <david.pine@microsoft.com>

* initial conversion

* tables tables tables

* markdownlint pass

* missed one

* another pass

* xrefs, part 1

* Revert "xrefs, part 1"

This reverts commit 22185ae.

* Populated all the xrefs

* images

* API reference link

* fix toc

* add descriptions

* Removed extra newlines

* Fixed table warnings

* fix metadata

* Made all the "see alsos" bulleted lists

* v1.12->v1.14

Co-authored-by: David Pine <david.pine@microsoft.com>

* Update quest.yml (#32199)

* Update quest-bulk.yml (#32202)

* Update quest-bulk.yml

* Update quest-bulk.yml

Try `-1` instead.

* Update quest-bulk.yml

* Added missing link for actors.md (#32201)

* Legacy FileStream mode and symlink breaking changes (#31602)

Co-authored-by: Tarun Jain <87998741+erjain@users.noreply.github.com>
Co-authored-by: Tarun Jain <v-tjain@microsoft.com>
Co-authored-by: David Pine <david.pine@microsoft.com>
Co-authored-by: Ashleigh Adams <ashleigh.k.adams@gmail.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Eli Entelis <42981948+eli-entelis@users.noreply.github.com>
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
Co-authored-by: Henrik Schönfelder <36896808+HTSchoenfelder@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc errors-warnings/subsvc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants