摘要:
// 版权所有 (C) Microsoft Corporation。保留所有权利。using System;using System.Collections.Generic;using System.Text;namespace AnonymousDelegate_Sample{ // 定义委托方法。 delegate decimal CalculateBonus(decimal sales); // 定义一个 Employee 类型。 class Employee { public string name; public decimal sales; public decimal bonus 阅读全文