问题描述
- 委托事件 问题 求求各位大神了
-
public event clsOPC.DataChangeEventHandler DataChange
{
[MethodImpl(MethodImplOptions.Synchronized)]
add
{
this.DataChange += (clsOPC.DataChangeEventHandler)Delegate.Combine(this.DataChange, value);} [MethodImpl(MethodImplOptions.Synchronized)] remove { this.DataChange += (clsOPC.DataChangeEventHandler)Delegate.Remove(this.DataChange, value); } } protected virtual void DataChangeEvent(int wTransID, int iItemCount, int[] iClientHds, object[] vValues, FILETIME[] ftTimeStamps, short[] wQualities, int[] pErrors) { MyOPCDATAChangeList[] oPCDataChangeList = this.GetOPCDataChangeList(); this.DataChange(this, new OPCDataChangeEventArgs(oPCDataChangeList)); }
解决方案
你的具体问题时什么没有说清楚。
时间: 2024-11-10 00:31:37