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:

  1. it allows save information between calls
  2. 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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -