登录
首页 » c# » c# 单例实现函数传递

c# 单例实现函数传递

于 2023-04-06 发布 文件大小:10.64 kB
0 125
下载积分: 2 下载次数: 1

代码说明:

一个单例类,这个类是做函数注册的。假设这个类的名字是:A 那么我想要的效果是: A aaa=A.GetInstance(); aaa.RegisterFunnction(123,xxxxx)、、xxxxx是B类里的函数。 这样我就把B类的函数xxxxx注册了,标识号是123。 然后我在别的地方,C类或者D类也好,也拿到这个单例,然后aaa.RunFunction(123) 传标识号,就能执行我那个B类的函数xxxxx

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • buzzer-sing
    基于STC89C52写的蜂鸣器唱歌程序,可以控制开发板上的蜂鸣器唱歌,适合初学者(Based on the STC89C52 write buzzer singing procedures, can control the development board of the buzzer singing, suitable for beginners)
    2012-12-17 20:24:57下载
    积分:1
  • 485
    周立功 485 用户指导手册,很强大。有详细电路图,不用找型号上面很清楚。 老外写的485通讯例子.485_guide.pdf RS485协议.pdf 485通讯.rar RS232转RS485电路图.doc RS485协议 485总线常识.pdf 485总线应用与选型指南.pdf 看完后基本不用找别的了。 (ZLG 485 user guide, very powerful. A detailed circuit diagram, do not look for models above is clear. Written by 485 foreigners example .485 _guide.pdf RS485 protocol. Pdf 485 communications. Rar RS232 to RS485 circuit. Doc RS485 protocol 485 common sense. Pdf 485 bus application and selection guide. Pdf After reading the basic need to find anything else.)
    2011-06-17 17:24:04下载
    积分:1
  • MPU6050六轴传感器实验
    基于STM32F103的MPU6050六轴陀螺仪传感器实验。可在LCD上显示MPU6050的数据,可在匿名四轴上位机上显示传感器的飞控状态。(The sensor experiment of MPU 6050 six-axis gyroscope based on STM32F103. The data of MPU6050 can be displayed on LCD, and the flight control status of the sensor can be displayed on an anonymous four-axis upper computer.)
    2020-06-20 01:00:02下载
    积分:1
  • ULIW0
    Debugging Program of Korea Optic New Integrated vehicle Radio High Frequency head KST-1111
    2019-03-25 16:10:45下载
    积分:1
  • 隧道水量计算器x
    基于生态平衡的原理,计算隧道的平衡涌水量(Calculate the equilibrium water inflow of the tunnel)
    2020-06-20 04:00:02下载
    积分:1
  • Fourier
    《实用Fourier变换及C++实现》随书光盘源码,提供了Fourier变换、Hillbert变换等模板库(" Practical Fourier Transform and C++ to achieve," the book s CD-ROM code, provides Fourier transforms, Hillbert transform template library, etc.)
    2009-10-09 14:45:26下载
    积分:1
  • SetRoi
    vs2010 用opencv实现自主设定ROI区域,并读取ROI进行下一步的图像处理。。(vs2010 with opencv autonomous region set ROI, ROI and read the next step of image processing. .)
    2013-12-03 16:55:31下载
    积分:1
  • 11seed-particle-effect-source
    cocos2dx 11种粒子效果源码,cocos2dx 11 seed particle effect source(cocos2dx 11 seed particle effect source)
    2014-01-08 09:28:39下载
    积分:1
  • pmw
    计算光子晶体带隙,利用平面波占开发计算光子晶体的带隙(Calculated photonic bandgap account for the development of photonic crystals using plane wave bandgap)
    2013-03-11 21:37:24下载
    积分:1
  • PID-NTC
    PID温度控制,用10K的NTC采样,温控精度为0.1(PID temperature control, with 10K of NTC sampling, temperature control accuracy of 0.1)
    2007-12-21 15:10:01下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载