L
L
Leonid2018-07-03 11:42:45
WPF
Leonid, 2018-07-03 11:42:45

How to set KindOfMagic to use INotifyPropertyChanged?

Actually, the question arose after the article by Lex Lavnikov "Fighting INotifyPropertyChanged or how I became op...
I have Visual Studio 2017 installed and I can't find the KindOfMagic extension in it, and I don't see NuGet myself. Tell me
about installing NuGet (if needed) and how to install KindOfMagic.
I would also like a simple example of using a miracle tool.
Thanks in advance!
(author Lex Lavnikov did not answer since 2016)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Leonid, 2018-07-03
@sled

I found an even cooler package - PropertyChanged.Fody (available in NuGet).
Example:

[ImplementPropertyChanging]
public class Person
{
    public string GivenNames { get; set; }
    public string FamilyName { get; set; }

    public string FullName
    {
        get
        {
            return string.Format("{0} {1}", GivenNames, FamilyName);
        }
    }
}

N
Nikita, 2018-07-03
@Smiz001

Right click on the project, there should be NuGet
Here is another link how to install it via the console

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question