Represent a dynamic data collection that provides notification when items get added,removed or when the whole list is refreshed
public static ObservableCollection<BrokenRule> ToObservableCollection(this List<BrokenRule> list)
{public static ObservableCollection<BrokenRule> ToObservableCollection(this List<BrokenRule> list)
var objCollection = new ObservableCollection<BrokenRule>();
//Represent a dynamic data collection that provides notification when items get added,removed or when the whole list is refreshed
foreach(var brokenRule in list){
objCollection.Add(brokenRule);
}
return objCollection;}
Comments
Post a Comment