Ayappan A

Ayappan A

  • 1.6k
  • 97
  • 12.6k

How to add Multiple models in collection ?

Dec 1 2019 11:03 PM
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)