Hi,
I am facing the problem in reading the "INotifyPropertyChanged" property value.
This is my method to get some information
public string GetInformation()
{
RequestObject request = new RequestObject();
ResponseObject response = service.GetInformation(request);
}
And my ResponseObject is
public class ResponseObject:object, System.ComponentModel.INotifyPropertyChanged {
{
private ErrorObject errorField;
public ErrorObject Error {
get {
return this.errorField;
}
set {
this.errorField = value;
this.RaisePropertyChanged("Error");
}
}
public EntityResponse Results {
get {
return this.resultsField;
}
set {
this.resultsField = value;
this.RaisePropertyChanged("Results");
}
}
}
At the time of debugging response object contains Result property that contains list of
ServiceObject
I want to read the value ImageCode of each ServiceObject of this list. And ServiceObject class is
public partial class ServiceObject : object, System.ComponentModel.INotifyPropertyChanged {
private string imgCodeField;
public string ImageCode {
get {
return this.imgCodeField;
}
set {
this.imgCodeField = value;
this.RaisePropertyChanged("ImageCode ");
}
}
}
I don't know how to access List<serviceobject> to read, because at the time writing code there is not any property that contains List<serviceobject>, It appears at run time.
Please help me. How can I access the values of List<serviceobject>