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

c# 单例实现函数传递

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

代码说明:

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

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

发表评论

0 个回复

  • HardWare id
    说明:  获取机器唯一标识符CPUIP,并进行base64加密(Get CPUIP, the unique identifier of the machine, and encrypt it with Base64)
    2020-06-24 18:00:02下载
    积分:1
  • qupan
    c#的教程非常好的教育成果,详细的介绍分析和综述(c# tutorial is the best educational outcomes, a detailed analysis and synthesis of introduction)
    2009-03-25 13:31:47下载
    积分:1
  • BrownMeter
    This app is for ios iphone xcode . it makes an image from a person. after that it tries to scan the image and see if the person has a great tan.
    2012-07-28 14:46:43下载
    积分:1
  • cr150
    电力载波通信模拟前端CR150datasheet(CR150 datasheet for plc)
    2019-04-28 11:21:22下载
    积分:1
  • 简单的Arduino GPS解码器
    简单的 NMEA gps 解码器为 Arduino 给 LAT 和 LON
    2022-03-29 13:16:14下载
    积分:1
  • freeswitch安装步骤与配置支持webrtc
    centos7.0 安装配置freeswitch1.6.20,并配置websip。的详细记录,以及安装经验
    2022-07-09 22:40:49下载
    积分:1
  • WangEPD
    基于短时能量和短时过零率来实现语音端点检测。也称为双门限比较法,是一种传统的 语音端点检测方法。现在已经有研究人员提出若干其他更加高效和有效的检测方法,但 是这个方法不失为一种最简单的方法,可以通过程序来获得语音端点检测的感性认识和 体会。内的程序读取WAV文件,程序附有详细的使用说明和注释,以及若干测试用的语音文件。(Based on the short-term and short-term energy to achieve zero rate of voice activity detection. Also known as dual-threshold comparison method, is a traditional method of voice activity detection. Researchers now have made a number of other more efficient and effective detection methods, but this method may be one of the most simple way to get through the process of voice activity detection and the experience of perceptual knowledge. Procedures within the WAV file to read, procedures with detailed instructions and notes, as well as the voice of a number of test documents.)
    2009-07-11 20:32:45下载
    积分:1
  • Basler_Pylon-API_Basic
    basler pylon API函数介绍,用于basler相机开发(basler pylon API functions, is used to basler Camera Development)
    2015-09-19 17:13:35下载
    积分:1
  • ECG
    心电图的特性描述,可用matlab实现。(ECG characterization, available matlab achieve.)
    2013-04-02 16:56:38下载
    积分:1
  • Slave-FIFO
    详细讲解Slave FIFO模式下的初始化设置和相对应寄存器说明(Explain in detail the initial setup Slave FIFO mode and the corresponding register description)
    2014-03-18 17:33:23下载
    积分:1
  • 696518资源总数
  • 104224会员总数
  • 54今日下载