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

C # variable

Data type 1), integer type: int can only store integers, not decimals.
2). Decimal type: double can store both integers and decimals. The number of digits after the decimal point is 15~16.
3), mo