Replies: 1 comment
-
This is a duplicate of #832. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes i write code which declares objects in a fashion where access to them will never be required by other members and their contents will never change.
In order to optimize my code up until now, i usually make use of static readonly field declarations. Ideally however i would like to do this in the scope of a member, instead of on a class level, to reduce the namespace polution, since if there are multiple methods declaring their resources as static readonly i will have many distractions in intellisense from the actual code i want to write.
That way my class would turn from
to this
Beta Was this translation helpful? Give feedback.
All reactions