3
Answers

How to add Multiple models in collection ?

Ayappan A

Ayappan A

5y
530
1
I have 3 different collection
 
public class Sample1
{
public int Id1 { get; set; }
public string Name1 { get; set; }
public bool Ischecked1 { get; set; }
}
public class Sample2
{
public int Id2 { get; set; }
public string Name2 { get; set; }
public bool Ischecked2 { get; set; }
}
public class Sample
{
public int Id { get; set; }
public string Name { get; set; }
public bool Ischecked { get; set; }
}
 
ObservableCollection<Sample> SampleData = new ObservableCollection<Sample>();
ObservableCollection<Sample1> SampleData1 = new ObservableCollection<Sample1>();
ObservableCollection<Sample2> SampleData2 = new ObservableCollection<Sample2>();
 
Add these  ObservableCollection into 1 collection.
 
Thanks in advance ... 
Answers (3)