Answers for "how to cast list to observablecollection c#"

C#
1

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);
Posted by: Guest on April-01-2020

C# Answers by Framework

Browse Popular Code Answers by Language