本文介绍了课堂活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我已经生成了一个类,其中包含我的 应用程序的配置数据。 不幸的是我不能使用类的静态实现,因为它 需要一个构造函数。 我在其他几个类中生成这个类的实例(无论我在哪里需要检索配置详细信息)。 我希望任何类生成一个事件,对于所有实例 在任何实例发生更改时重新加载底层xml文件 属性。 类实例是否可以生成一个事件,以便所有其他实例都能收到活动? 问候, DaveI have generated a class, which contains configuration data for myapplication.Unfortunately I cannot use a static implementation of the class, as itrequires a constructor.I generate instances of this class in several other classes (wherever Ineed to retrieve the config details).I would like any of the classes to generate an event, for all instancesto reload the underlying xml file whenever any of the instances changethe properties.Is it possible for a class instance to generate an event so that allother instances will receive the event?Regards,Dave推荐答案 这篇关于课堂活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-22 17:11