Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for property-changed handlers #2

Merged
merged 2 commits into from
Dec 4, 2020
Merged

Conversation

IGood
Copy link
Owner

@IGood IGood commented Dec 4, 2020

  • Now supports property-changed handlers by looking for methods like
    static void FooPropertyChanged(Widget self, DependencyPropertyChangedEventArgs e) { ... }
    These are static methods named like *Name*Changed with compatible parameter types.
  • Fix for bug in GetTypeName if generic parameters had dots (ex: Widget<System.Int32> would get Int32>)
  • Changed generic type name for good measure (TTarget to __TTarget)

looks for things like...
static void FooPropertyChanged(Widget self, DependencyPropertyChangedEventArgs e) { ... }
- fix for bug in `GetTypeName` if genereic parameters had dots
- changed generic type name for good measure
- made `CanCastTo` recursive
@IGood IGood merged commit 6e938f5 into main Dec 4, 2020
@IGood IGood deleted the property-changed-handlers branch December 4, 2020 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant