C
C#14mo ago
swagrid

✅ `checked` on file level

Is there a way to enable checked arithmetic for a whole file?
5 Replies
Thinker
Thinker14mo ago
No but you can enable it per project afaik
swagrid
swagrid14mo ago
Unfortunate. I know about the project setting, but I was hoping to easily enable it for a single file using #pragma or something.
jcotton42
jcotton4214mo ago
@swagrid worth noting that there's a block form of checked So you can at least do it per method
swagrid
swagrid14mo ago
I'm aware of that, thank you. It's only one or two occasions per method but it's in every method so it's a bit annoying having to put all the checked blocks around it
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.