コード例 #1
0
        /// <summary>
        /// 初始化委托
        /// </summary>
        public void GetDelegate()
        {
            modelDelegate dele = this.modelDeleegateFun;

            dele.Invoke(new ChinaCar()
            {
                CarName = "112"
            });
        }
コード例 #2
0
        /// <summary>
        /// 初始化委托
        /// </summary>
        public void GetDelegate()
        {
            modelDelegate dele = this.modelDeleegateFun;

            dele.Invoke(new Worker("张三"));
        }