Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to cast list to observablecollection c#

var stringList = new List<string>() {"1","2","3"};
//Use the contructor override to add the list to the new collection
var obStrings = new ObservableCollection<string>(stringList);
 
PREVIOUS NEXT
Tagged: #cast #list #observablecollection
ADD COMMENT
Topic
Name
7+3 =