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

c# 单例实现函数传递

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

代码说明:

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

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

发表评论

0 个回复

  • VC.NET
    vc++.net精彩百例代码。比较好的,比较经典的例子。(vc++. net wonderful 100 cases of the code. Better, more classic example.)
    2010-03-11 15:36:05下载
    积分:1
  • EasyMS
    实现了c/s模式的消息通讯,通过多线程、监听等技术,完成了初步的一个类似QQ的通讯工具(Realization of c/s mode of message communication, through a multi-threaded, listening technology, completed a preliminary communication tools like QQ)
    2014-07-01 18:23:27下载
    积分:1
  • C#股票趋分析及监控实现
    采用VS2013C#对股票分析及监控实现,导入数据图形化显示,数据源的采集等,可供对股票股票感兴趣者借鉴。
    2019-07-17下载
    积分:1
  • AJAX WCF WinForm示例源码下载
    大部分WCF都是寄宿于IIS,寄宿于WinForm的资料很少。 有相同需求的可以参考下。
    2014-05-19下载
    积分:1
  • ManagerHotel.rat
    各种常用.net控件的增删改查,很实用,有注释(ManagerHotel.rat.zip is using C#,very good!)
    2010-12-09 09:04:09下载
    积分:1
  • 代码
    分为主机,从机两部分,从机收集温度并动态显示在数码管上;主机和从机通过nrf24l01模块进行无线通信,主机把从机(3个)的温度数据显示在lcd1602上(It is divided into two parts: the master and slave, which collect the temperature from the slave and display it dynamically on the digital tube; the master and slave communicate with each other through the nRF24L01 module, and the host displays the temperature data of the slave (3) on the lcd1602.)
    2020-06-16 11:00:02下载
    积分:1
  • 20180713
    说明:  拍拍灯的源码程序,值得参考.可以放在床头,晚上起来时轻拍一下就亮,很方便实用。 在黑暗的夜里,留一盏灯给回家的人,温馨的氛围让屋子里每一个角落都充满幸福的光辉。 不管自己是不是一个人,心里都希望黑黑的地方有着柔和的光,特别在晚上拥有让人安心的理由。在因为太过疲倦而不容易入眠的痛苦时候,其实温柔光线能够抚慰人心,让人放心入睡。(Patting lamp source code procedures, is worth reference. Can be put on the head of a bed, at night when the light tap, very convenient and practical. In the dark night, leave a lamp to go home, warm atmosphere makes every corner of the room is full of happiness. Whether you are a person or not, you want a soft light in a dark place, especially at night for a reassuring reason.In the pain of being too tired to fall asleep easily, actually gentle light can be soothing and make people rest assured to sleep.)
    2020-06-17 17:20:02下载
    积分:1
  • PaletteDemo
    此代码创建喝使用调色板,是个作为参考代码(This code creates a drink using a palette as a reference code)
    2013-01-05 16:09:59下载
    积分:1
  • AIPolicy
    诛仙,完美系统游戏服务端的AI编辑器源码(Zhu Xian, perfect the system of the AI game server source code editor )
    2020-11-05 23:09:50下载
    积分:1
  • hpcv-water-29-oct-2010
    OSG实例,shader编程,实现简单的小溪河流定向移动(OSG , shader programming, achieve a simple directional movement of rivers )
    2020-09-13 17:27:58下载
    积分:1
  • 696518资源总数
  • 105908会员总数
  • 30今日下载