Replies: 1 comment
-
I think partial methods is the best solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, In Avalonia, this library cannot generate all the code related to DependencyProperty and RoutedEvent, etc. like
AddClassHandler
,OverrideDefaultValue
. (Of course,AddClassHandler
can change it to AddHanlder):And a type can only have one static constructor.
If we manualy add both static constructor and OnXXChanged partial method, we will get
error CS0111
Should we add new partial method in StaticConstructorGenerator? like this:
and adding manual code in partial method.
Or adding new attribute like
[PostStaticConstructorAttribute]
to a static method?Or other implementations?
Beta Was this translation helpful? Give feedback.
All reactions