J'ai une chaîne de champ dans struct, et je veux apprendre apprendre en temps réel a changé ce champ.listener C# like java
struct example {
public string ex;
}
examp = new example();<BR>
examp.ex = "test";
////// then program work and eamp.ex = "bing";
J'ai besoin méthode
on_ex_changed()
{
if examp.ex changed then .....
}
en ligne et plz simples
Vous pouvez jeter un oeil sur la façon dont les événements fonctionnent en .Net: http://msdn.microsoft.com/en-us/library/awbftdfh.aspx – jmservera