Since .NET does not offer a set class, and C# doesn't offer any set
operations, there is no inherent way to do this. You will have to either
write a set class to perform the work, or define a method that does it over
arrays or lists.
Determining the intersection is pretty easy, just iterate one list and keep
only the elements that exist in all others.
Yes, you have a point there. It entirely depends on the size and consistency
of your set universe.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.