Firing an event / function on a property? (C#)

后端 未结 8 1477
你的背包
你的背包 2021-02-08 11:46

I am using a class that I cannot edit, it has a property (a boolean) of which it would be nice to be informed when it changes, I can\'t edit the properties get or set as I am im

8条回答
  •  星月不相逢
    2021-02-08 12:45

    You will need to create a class that wraps the class in the dll, within the setter property just raise an event there using the normal methods.

提交回复
热议问题