c # Wedding (commission)

Time: June 6, 2019 10:49:50
Location: the wedding hall
People: commission (the woman's father), sister party (the woman's method), square little brother (the man method), class (the man his father)
A method of holding his father's hands and walked slowly in front of the body ethan
A method will be reluctant to delegate hands on the arms of the method B
He said.
My little sister will square entrusted to you, that she must be some point Less to her, or I will not forgive you.
Fang said firmly brother
Dad, do not worry, you look at some of the parameters I was ready, if if is not enough, supplemented on, definitely not ill-treat party sister
Class also said aside
Relatives assured the public, I have looked at
Entrusted this time to say
I just do not trust it? I stared at it all the time!
There discontent girl and dad said, to see his dad how to pack
The young girl tears swipe left side, and said,
Dad, rest assured. The method is good to me, go back to the Sister's wedding is also on the agenda, and you do not forget.
Entrust
Dad, then how can I forget it you will not forget
So the wedding will be happy with. . . . . .
 
 
The following section is attached delegate Code
public delegate int Expression(int a, int b);
class Program
{
        static void Main(string[] args)
        {
            //(2)委托扩展
            //Expression ex = GetEX;
            //Calculate(ex, 25, 10);
            Calculate(GetEX, 25, 10);
            Console.ReadKey();
        }
        static int GetEX(int a, int b)
        {
            return a + b;
        }
        static void Calculate(Expression ex, int a, int b)
        {
            Console.Write(ex(a, b) + "\n");
        }
}

Guess you like

Origin www.cnblogs.com/mo-shang-nian-hua/p/10984240.html