Return IEnumerable<IEnumerable<T>> in C#

  • Thread starter Thread starter Arash_89
  • Start date Start date
A

Arash_89

Guest
Hello,

How can I fix the following code?

Thanks


IEnumerable<IEnumerable<T>> ReturnSomething<T>()
{
HashSet<HashSet<T>> hs = new HashSet<HashSet<T>> {
new HashSet<T>{1,2,3,4,5},
new HashSet<T>{6,7,8,9,10},
new HashSet<T>{11,12,13,14,15}
};
return hs;
}

1543720.jpg

Continue reading...
 
Back
Top