- Home /
Question by
MapuHoB · Jan 06, 2015 at 03:40 AM ·
c#propertiesstatic-variables
Static variable or static property?
Hi guys, I would like you ask you does it really matter if you're going to use static variable or static property if you don't need any logic attached to it like validations, events and so on?
Comment
Best Answer
Answer by MakeCodeNow · Jan 06, 2015 at 04:47 AM
If you don't need to run any additional logic and it's ok to both set and get, then prefer the variable as it'll have somewhat less overhead than the property (which requires function calls).
Your answer
