VSDiagnostics icon indicating copy to clipboard operation
VSDiagnostics copied to clipboard

Enum.ToString() calls should use nameof()

Open Vannevelj opened this issue 8 years ago • 1 comments

Vannevelj avatar Dec 13 '16 14:12 Vannevelj

They don't actually have a memory impact, the only thing that might be a little bit affected is execution time because it has to perform method dispatching and go through the entire callchain. Still no reason not to use a compile-time constant though.

Vannevelj avatar Dec 30 '16 00:12 Vannevelj