3 ms·
Aside from obviously preventing typos, I really like being able to very quickly find all references that use the string. For example when storing session state
by zaroth 7y ago
Aside from obviously preventing typos, I really like being able to very quickly find all references that use the string.
For example when storing session state into a Dictionary<string,object> all access to the session state is through static strings, never a string literal. This makes is super easy to find everywhere that’s accessing that particular session variable.