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

Improve lookup injected setter handler with attribute. #8

Closed
kekyo opened this issue May 22, 2021 · 0 comments
Closed

Improve lookup injected setter handler with attribute. #8

kekyo opened this issue May 22, 2021 · 0 comments

Comments

@kekyo
Copy link
Owner

kekyo commented May 22, 2021

Dodge duck typing.

Illustrates:

// Disabling duck-type lookup by attribute explicitly.
[OnPropertyChanged(nameof(Title))]
private ValueTask OnTitleChanged(string value)
{
    // ...
}

Idea from Fun Fan F# video conference: https://www.youtube.com/watch?v=nFD7-nQFzZo&list=PLbLAMB4nUGAMqY_qX470gvce8ZFRfvXaM

kekyo added a commit that referenced this issue Jun 9, 2021
kekyo added a commit that referenced this issue Jun 9, 2021
@kekyo kekyo closed this as completed Jun 9, 2021
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

No branches or pull requests

1 participant