In c# programming if we include function call within the button click with definition more than 20 lines..........does it improves the performance (speed) of the program when compared with writing that 20lines within the button click function ...............
Jump to Post
It's faster to have the code inside the button click event as any call to a method has some overhead. But we are talking about millionths of a second, you won't notice.
All 7 Replies
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.