Open kefyru opened 2 years ago
Tagging subscribers to this area: @mangod9 See info in area-owners.md if you want to be subscribed.
Author: | kefyru |
---|---|
Assignees: | - |
Labels: | `area-System.Threading`, `untriaged` |
Milestone: | - |
Why should this be part of the runtime/compiler, when it could be a 3rd party Roslyn analyzer instead?
Add attribute
[SyncContext(contextName)]
for fields, properties and methods Compiler will check if member with this attribute using outsidelock(context) {...}
block than cause warningmember should use inside lock(contextName) block
Example