Ejemplo n.º 1
0
        static void TeamDelegateTest()
        {
            TeamDelegate teamDelegate = delegate(string name, string[] names)
            {
                Console.WriteLine("队名:" + name);
                Console.WriteLine("队员:");
                foreach (var item in names)
                {
                    Console.WriteLine(item);
                }
            };

            teamDelegate("黄队", "BBB", "小母鸟");
        }
Ejemplo n.º 2
0
 public void init(TeamDelegate OnTeamBarCellClicked)
 {
     this.OnTeamBarCellClicked = OnTeamBarCellClicked;
 }