I was reading the book “Apress Pro LINQ: Language Integrated Query in C#” and I came across partial methods, but I really don’t understand what is the need for them.
I think the examples in the book (properties before and after change) can be implemented using events. So any explanation?
Yes, you could achieve a similar effect with events as you can with partial methods. Partial methods are really just a way of letting code generators, primarily designers, to generate hooks for the non-generated code. Events could fill this role.
However there are advantages to partial methods over events in particular