C # entrusted supplement 01

The last article wrote some of the most basic things for commissioning. In this article, let’s talk about commissioning other things.

According to the understanding of the delegation, the delegation can Pass a method as a parameter. Using this feature, we can use delegates to implement plug-in programming.

C # interface

1 //Public interface: “Animals”
2 public interface IAnimal
3 {
4 void Behavior(); //behavior methods, describing the characteristics of various animals
5 }
6
7 //Class: Dog
8 publi