We have a list that contains a nested list ie.
public class Question
{
public string Question { get; set;}
public List<Tag> Tags { get; set; }
}
public class Tag
{
public string TagName { get; set;}
public string TagDescription { get; set;}
}
We then have a procedure where GetQuestions() returns a list of questions
public List<Tag> QuestionTags(int Type)
{
DAQuestions da = new DAQuestions();
var t = (from d in da.GetQuestions(Type)
)
select d.Tags).ToList();
}
What we are trying to achieve it to return back 1 definitive list of tags (no duplicates).
What we have returning at the moment is a
List<List<Tag>>
>` and implement `IEqualityComparer` to get distinct values from that list. See: http://msdn.microsoft.com/en-us/library/vstudio/bb338049(v=vs.100).aspx
– Habib Oct 06 '14 at 15:27