Originally a 9CBS article so that a function can add another function and then run this function, another function is followed, it is a C # mechanism (said that in the article). The new bottle of old wine, I see and the implementation of stream in Java is similar. . . These are nonsense, I pay attention to whether the C # or this article, the function type of the commissioning mechanism is the same, of course, this is generally enough but pursue technology, can you achieve a different type of function type? The difficulty itself analyzes and records these function types, resolved on me, and Template naturally made records more fun. If you use Java's implementation method, you will use the chain method, then record a type inside the base class. If you want to use articles The saying: The first method records the following method, then the first method will maintain a "type" list core problem how to record a "type", and it is the result of dynamic me. . . It is impossible :) It seems that there is no way to do if the compilation language is done. If the explanatory language is still possible. C 's cattle people think about it, is there a way to complete this task