3 ms·
The new C# 6 templates don't require namespace or class blocks - for this reason I suppose.
by catmanjan 5y ago
The new C# 6 templates don't require namespace or class blocks - for this reason I suppose.
- sk0g 5y agoI do like having the namespace there, if only to gently nudge you towards better architecture. As a temp fix I have overridden Rider's code formatting to not indent within the namespace, but C# 10 will bring file scoped namespaces. You can just declare the namespace between the imports and the classes, and everything in the file will be namespaced automatically.
- fingerlocks 5y agoPretty much every language with a class that contains a function with a loop that breaks on an inner condition would be 4 levels deep. I suppose Objective-C would only be 3 deep, but I can't think of any others off the top of head.