Why can't a member method be passed to a base class constructor?

后端 未结 7 1693
谎友^
谎友^ 2021-01-07 17:10
class Flarg
{
    private readonly Action speak;

    public Action Speak
    {
        get
        {
            return speak;
        }
    }

    public Flarg(Act         


        
7条回答
  •  被撕碎了的回忆
    2021-01-07 17:40

    the object doesnt exist yet at the moment of the creation of the base object. so how should it already make a "pointer" to the method?

提交回复
热议问题