vb.net - Is it possible to use one static variable in property that is accessible by both the getter and setter -
not taking performance account, can handy use static variable inside getter readonly property since:
- it allows save information between calls
- the information accessible property
the problem not seem accessible property's setter. correct, or missing something?
no, because not make sense. expose static value via read property, sure. definition of "static" cannot assign it, purpose of set method of property.
edit: clarify, else inbound 'value' of set... aren't setting member variable property exposes anymore, sounds need public class sub whatever weird set do.
Comments
Post a Comment