责任链内部现场成员

时间:2016-10-14 16:44:08

标签: c#

您好我有一个关于内部字段成员如何记录需要批准的不同类型成员的快速问题。

public abstract class Approver
    {
        //internal field member that stores this
        protected Approver NextApprover;

        public void SetNextApprover(Approver nextApprover)
        {
            this.NextApprover = nextApprover;
        }

        public abstract bool ApproveMaterial(Material material, ref string reason);
    }
}

感谢您的帮助。

0 个答案:

没有答案