1
我有NPC類的層次結構(由PostSharp實現)檢測NPC嵌套模式改變
[NotifyPropertyChanged]
class A
{
}
[NotifyPropertyChanged]
class B
{
[Child]
public AdvisableCollection<A> Childs { get;set; }
}
[NotifyPropertyChanged]
class C
{
[Child]
public A PropertyA { get; set; }
[Child]
public B PropertyB { get; set; }
}
我如何訂閱對象C類來檢測是否有嵌套對象的任何屬性更改(包括更改孩子們的收藏)?我需要得到通知時,我的模型變得髒
其更好地引用您的鏈接的最相關的部分僅在目標站點無法訪問或脫機時才發佈鏈接。 – thehennyy