Which method is better and why, when?
In terms of scalability,performance etc which one is better?
From my point of view coding by hand is better and more natural.
what do you guys think?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you mean manually adding
+=event handler methods vs. having them added in the auto-generated files? (like.Designer.csfor WinForms).I don’t think it matters. The important thing is to remember to detach
-=the event handlers when appropriate to stop references keeping objects from being garbage collected. IMO it is easier to keep track of of it all if you do it all by hand.