The following array is used in a C # application:
CProject[] projectArray = this.proxy.getProjectList(username, password);
However, I need projectArray as an ObservableCollection<CProject> . What would be the recommended way to do this? So far I have been using the following statement:
ObservableCollection<CProject> projectList = new ObservableCollection<CProject>(projectArray);
You can also use this expression or would you recommend other ways?
arrays c # observablecollection
Robert Strauch
source share