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

c# 单例实现函数传递

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

代码说明:

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

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

发表评论

0 个回复

  • 7-野火M3-ADC(DMA)
    说明:  stm32f103ADC采样程序,串口发送显示。(Stm32f103adc sampling program)
    2020-12-25 21:53:10下载
    积分:1
  • NB-IOT BC95
    使用LiteOS来点亮LED灯,这样是为了更方便的使用使用LiteOS,更能了解LiteOS的整体的框架,更能了解LiteOS的内核文件,更能了解物联网操作系统的整体发展
    2022-03-05 06:33:12下载
    积分:1
  • mp3towav
    使用libmpg123.dll, 将mp3文件解码为wav文件(Decode mp3 file to wav file by using libmpg123.dll.)
    2013-12-10 09:03:40下载
    积分:1
  • WarftpPccproxy
    用C语言编写,分别攻击了Warftp和ccproxy两个漏洞(这两个漏洞只在windows xp sp2中存在,sp3和win7已经修复。因此需要安装一个sp2的虚拟机),攻击完成后,会弹出一个攻击成功的对话框,程序比较基础,但是能够帮助初学者深刻了解缓冲区溢出的原理。(Using C language, were attacked Warftp and ccproxy two vulnerabilities (both vulnerability only exists in windows xp sp2, sp3 and win7 has been repaired, so you need to install a virtual machine sp2), and after the attack is completed, it will pop up a successful attack dialog program basis for comparison, but a deep understanding of the principles that can help beginners buffer overflow.)
    2014-07-21 15:58:30下载
    积分:1
  • nrf24l01?¨??o?
    将库文件导入到ARDUINO中使用,可完成无线通信(Wireless communication can be accomplished by importing library files into ARDUINO.)
    2020-06-19 10:20:02下载
    积分:1
  • 第6章 数据结构的魅力
    说明:  给出了《C语言程序设计经典236例》》中236题的源代码文件,并且源代码还附有注释,十分详细,这是4-6章的代码(This is the code of chapter 4-6)
    2019-10-25 16:36:21下载
    积分:1
  • 20081030104056Uart
    基于zigbee的定位系统程序,能够实现单个节点和多个极点的定位功能(Zigbee-based positioning system procedures, be able to achieve a single node and multi-pole positioning function)
    2021-03-09 21:59:27下载
    积分:1
  • LDPCPAR
    介绍了一种串行LDPC码的编码器和译码器的实现形式 C++环境下编写。有些地方还需完善,请各位帮忙指正。(introduces a serial LDPC encoder and decoder of C forms prepared environment. Need to improve in some areas, please correct me help you.)
    2006-08-26 16:54:51下载
    积分:1
  • siyuanshi
    编译原理中的小作业,转化四元式,可以直接使用于课程设计中的一部分。(The principle of small compiler operating, transformation four yuan, a part can be used directly in the course design of the.)
    2014-06-19 19:30:35下载
    积分:1
  • dpta
    Science data visualization, the use of VC development, to the various types of data visualization analysis,
    2017-05-11 07:20:47下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载