❔ property cannot by in ref

I quite don't understand that. How can I fix that and more importantly, what's the problem here? I have a class Clock and and another class I want to access its properties.
11 Replies
TheRanger
TheRanger2y ago
not possible that way, is raiseandsetifchanged a method u created?
Lucas.mrozikpl
Lucas.mrozikplOP2y ago
nope
TheRanger
TheRanger2y ago
does this method have overloads?
Lucas.mrozikpl
Lucas.mrozikplOP2y ago
it's only one
Lucas.mrozikpl
Lucas.mrozikplOP2y ago
the body of used method:
TheRanger
TheRanger2y ago
only a field is required
Lucas.mrozikpl
Lucas.mrozikplOP2y ago
ahh so I need to write backing field for that
Lucas.mrozikpl
Lucas.mrozikplOP2y ago
seems to be OK. Actually the answer lied in parameters in methods ahh 🙂
TheRanger
TheRanger2y ago
u probably have a method called RaisePropertyChanged u can just set a property's value, then call that method
Lucas.mrozikpl
Lucas.mrozikplOP2y ago
yes, it seems that this method is more applicable here
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server