Is there a built in way (LINQ maybe?) of taking all the row values from a specific column from a DataTable and creating a HashSet from it? The column is also of type String.
I could obviously do this in a loop but I was wondering if there is another way?
I'm using .net 3.5 btw.
Thanks,
AJ
Use HashSet<T> Constructor (IEnumerable<T>)
Reference: http://msdn.microsoft.com/en-us/library/bb301504.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With