how do interfaces and hashsets/lists work? C#

Discussion in 'Programming' started by Anveto, Feb 14, 2012.

  1. #1
    I need to create a class that represents a integer set using a HashSet<int>. Basically I am lost and I am not sure what to do.

    I was told to use this

    class TheHashSet<int> : SetsClass.ISomeInterface
    Code (markup):
    Where the interface has functions I need to use in other classes to add to or check what is in the hashset, yes a new method is needed even though there are exisitng methods.

    Can anyone explain how this works or show me some examples, I have searched before asking.

    Thanks!
     
    Anveto, Feb 14, 2012 IP