is there a trick to assign a value to a variable with a custom setter without triggering it?
c
Czar
02/22/2019, 9:10 AM
reflection
e
elect
02/22/2019, 9:10 AM
uh
elect
02/22/2019, 9:10 AM
thanks
p
Pavlo Liapota
02/22/2019, 9:13 AM
Or if you can change code of this property then create a backing field for this property by yourselves as another property, so you will be able to update this backing field without triggering custom setter.
e
elect
02/22/2019, 9:14 AM
yeah, I thought something like that too
s
sitepodmatt
02/22/2019, 9:40 AM
curious to the use-case.. reflection or another property that doesnt do the setter work but still assigns to same backing variable come to mind but perhaps there's a better solution (or maybe not)
e
elect
02/22/2019, 9:41 AM
it's for library internal work about an opengl dsl