3

Why is the method in Global.asax called Application_Start() and not ApplicationStart()?

According to MSDN method names should be in Pascal case.

1 Answer 1

10

This is an event handler, in addition to being a method.
The convention for naming event handlers is EventOrigin_EventName(...). Event origin can be a name of an instance (camel case), or a name of a class (Pascal case), or some other meaningful name (Pascal case). Event name is Pascal case. Underscore between. Visual Studio uses this naming convention when it creates default event names.

emergencyStopButton_PreviewKeyDown(...)
Form_BeforeOpen(...)

related: Naming C# events and handlers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.