Advantages of using const instead of variables inside methods
问题 Whenever I have local variables in a method, ReSharper suggests to convert them to constants: // instead of this: var s = "some string"; var flags = BindingFlags.Public | BindingFlags.Instance; // ReSharper suggest to use this: const string s = "some string"; const BindingFlags flags = BindingFlags.Public | BindingFlags.Instance; Given that these are really constant values (and not variables) I understand that ReSharper suggest to change them to const. But apart from that, is there any other