You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Sometime we need to define a property in a parent abstract class, but set its value on child ones.
How to deal with it with OAPH fody weaved properties?
I mean I know I could write things manualy like:
and my Child classes will override the value with their own WhenAnyValue, that's ok. But it's still kind of a boilerplate to me for just setting an initial value.
Describe the solution you'd like
It could be cool if we could define initial values by writing things like:
Is your feature request related to a problem? Please describe.
Sometime we need to define a property in a parent abstract class, but set its value on child ones.
How to deal with it with OAPH fody weaved properties?
I mean I know I could write things manualy like:
Parent class:
Child class 1:
Child class 2:
That works.
But what if I want to use ObservableAsPropertyAttribute provided by Reactive.Fody?
Well, actually, I could write things like this:
Parent class:
and my Child classes will override the value with their own WhenAnyValue, that's ok. But it's still kind of a boilerplate to me for just setting an initial value.
Describe the solution you'd like
It could be cool if we could define initial values by writing things like:
It seems natural to me.
Don't know if it's possible as I don't know anything about the weaver magic thing actually.
If not, maybe this one should be:
Less natural, but doing the job.
Describe alternatives you've considered
Described into the problem description section.
Describe suggestions on how to achieve the feature
Take declared default value on the weaver side instead of default(T)
The text was updated successfully, but these errors were encountered: