Answer the question
In order to leave comments, you need to log in
Why do method names in Visual Studio have different CamelCase syntax by default?
Visual Studio 2019
Double click on button creates view method
private void button1_Click(object sender, EventArgs e)
private void Button_Click(object sender, RoutedEventArgs e)
Answer the question
In order to leave comments, you need to log in
As far as I remember - a very long time ago, Microsoft was recommended to adhere to the common naming style when private methods are written in CamelCase (by the way, it's not a fact that this is bad and why they left it - the question is). But then Microsoft apparently decided that they were special and they should have everything in Pascal. And we updated the style guide on msdn .
Perhaps they simply forgot about WinForms and did not begin to redo the automatic code generation to fit their own style requirements.
PS:
At Microsoft itself, if you look at the interfaces and implementation of .NET libraries, naming in CamelCase is often found.
So historically, they apparently decided not to change this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question