Tag Archives: hash sets

Use set operators in C#

This example shows how you can add set operators to make working with sets slightly easier. The example Perform set operations in C# explains how to use the HashSet class to represent and manipulate sets. Unfortunately to manipulate the sets … Continue reading

Posted in algorithms, classes, mathematics | Tagged , , , , , , , , , , , , , , , , | Leave a comment

Perform set operations in C#

The HashSet class can represent objects in a set and perform set operations such as finding the union or intersection of two sets. When the program starts, the following code builds two sets and performs some operations with them. // … Continue reading

Posted in algorithms, classes, mathematics | Tagged , , , , , , , , , , , | 2 Comments