关于Property 高手帮帮忙啊!
Public Property Let Data(vNewData As Object)
' Store this data internally in our object
Set m_eventData = vNewData
end property
怎么改写成c#代码? 谢谢了。
------解决方案--------------------Public Property Let Data(vNewData As Object)
' Store this data internally in our object
Set m_eventData = vNewData
end property
public object Data
{
set {this.m_eventData = value;}
}
------解决方案--------------------VB 的let
就相当于C# 的SET
VB通过一个参数传递输入值
C#默认就是VALUE