我在结构中有字段字符串, ,我想学习实时更改此字段。听众c#像java
struct example {
public string ex;
}
examp = new example();<BR>
examp.ex = "test";
////// then program work and eamp.ex = "bing";
我需要方法
on_ex_changed()
{
if examp.ex changed then .....
}
在线和简单的PLZ
您可以采取的事件在.net中是如何工作的一看:http://msdn.microsoft.com/en-us/library/awbftdfh.aspx – jmservera 2010-02-15 07:48:02