❔ 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
TheRanger17mo ago
not possible that way, is raiseandsetifchanged a method u created?
Lucas.mrozikpl
Lucas.mrozikpl17mo ago
nope
TheRanger
TheRanger17mo ago
does this method have overloads?
Lucas.mrozikpl
Lucas.mrozikpl17mo ago
it's only one
Lucas.mrozikpl
Lucas.mrozikpl17mo ago
the body of used method:
TheRanger
TheRanger17mo ago
only a field is required
Lucas.mrozikpl
Lucas.mrozikpl17mo ago
ahh so I need to write backing field for that
Lucas.mrozikpl
Lucas.mrozikpl17mo ago
seems to be OK. Actually the answer lied in parameters in methods ahh 🙂
TheRanger
TheRanger17mo ago
u probably have a method called RaisePropertyChanged u can just set a property's value, then call that method
Lucas.mrozikpl
Lucas.mrozikpl17mo ago
yes, it seems that this method is more applicable here
Accord
Accord17mo 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.