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

c# 单例实现函数传递

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

代码说明:

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

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

发表评论

0 个回复

  • chuhuaxihua1
    粗化细化程序很好用的,大家试市啊,(crude refining procedures of the good, we take the city ah,!)
    2006-11-11 20:52:48下载
    积分:1
  • 4、16X16 使用指针显示汉字
    51单片机16*16点阵 使用指针显示汉字(Using pointer to display Chinese characters)
    2018-05-06 18:56:06下载
    积分:1
  • vc++数字图像处理算法实现
    全套的VC++处理图像源代码,轻松利用VC++进行图像处理,全面了解VC++处理过程
    2022-08-04 03:12:42下载
    积分:1
  • 周立功的I2C核及驱动 master
    周立功的I2C核及驱动 周立功的I2C核及驱动(I2C core)
    2009-05-10 20:03:54下载
    积分:1
  • led
    带参数子程序控制LED闪烁,适合单片机初学者(Subroutine with parameter control LED flashes, suitable for beginners SCM)
    2014-07-17 13:26:40下载
    积分:1
  • lmap
    天堂的地图配置文件和几个相关的软件 =================== kehuduanmap**.s32 kehuduanmap**.seg 配置文件 配置文件内包含的数据有地图的 安全/战斗区域信息,地图块的拼接与位置信息,建筑物与点缀等内容的拼接与位置 =================== L1MapTool* 地图框架查看器 与 源码 此软件只能查看地图的 安全/战斗区域信息. 关于地图的具体绘制信息并未展示. 因为这个地图肯定是打开了*.s32与*.seg文件 我猜测他就可以直接看到配置文件的明文. =================== lep.exe 地图预览工具 此工具可以预览极老的某个游戏版本[好像已经失传了]的地图,应该是获取了所有的地图信息后展示出来. ===================(Paradise 1 Game Map Browsing Tool)
    2020-06-16 06:20:01下载
    积分:1
  • C# 内容繁简转换实例源码
    資料庫內容繁簡轉換
    2017-02-04下载
    积分:1
  • PSO
    针对传统的算法如遗传算法、粒子群算法等在TSP问题上求解精确性和求解规模上都还有一定的不足,本文提出了一种基于动态规划思想的粒子群优化算法。该算法用动态规划的方法实现粒子间的信息交互和粒子的进化,并且将粒子群中的粒子按无标度信息指导网络拓扑图的方式进行连接。仿真结果表明该方法能有效地减小误差率,提高解的精确,同时还保持了较低的计算复杂度,具有良好的稳健性。(TSP problem solving for the traditional algorithms such as genetic algorithms, particle swarm optimization accuracy and solving the scale, there is a certain lack of a dynamic programming algorithm-based particle swarm optimization algorithm. The algorithm using dynamic programming method to achieve the evolution of information exchange between the particles and the particles, and particle swarm particle scale-free information guide network topology map to connect. The simulation results show that this method can effectively reduce the error rate and improve the solution precision, while maintaining a low computational complexity, good soundness.)
    2013-01-07 18:05:35下载
    积分:1
  • black spider 商业破解版
    black spider自动化渗透工具,爆破,子域名,EXP漏洞利用(Black spider automated penetration tool, blasting, sub domain name,)
    2020-07-26 01:58:42下载
    积分:1
  • vtk
    利用vtk实现纹理贴图,并且支持三维交互操纵(Use vtk achieve texture mapping, and support for 3D interactive manipulation)
    2015-06-15 16:27:14下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载