Skip to content

Can I add an interface to a class? #34

Answered by prochan2
mrpmorris asked this question in Q&A
Discussion options

You must be logged in to vote

With Metalama, this is not the case anymore. See the NotifyPropertyChanged example at https://try.metalama.net/#inpc or https://github.com/postsharp/Metalama.Samples/tree/master/src/Metalama.Samples.NotifyPropertyChanged .

In the Main method, we're referencing the PropertyChanged event from the introduced INotifyPropertyChanged interface.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrpmorris
Comment options

Answer selected by mrpmorris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants