In the GUI application I am writing I have some checkboxes for various
settings. The code right now has internal boolean variables and the events
that are fired off on checkBox_CheckedChanged for different checkboxes
change those boolean variables, which are later used throughout the program
(if/else statements).
Looking at this, I could cut the overhead of storing and retrieving the
boolean value by just referring to checkBox1.Checked property each time I
need to find out the value.
Is there any overhead involved with accessing boolean properties of the
Windows Form (the values are accessed perhaps 10-50 times a second) as
opposed to storing the boolean internally as a variable?
--
Alex Moskalyuk
_____________________________
http://www.techinterviews.com