Suzie999 245 Coding Hobbyist

I have a class which is using IEnumerable and I now need to implement IDisposable

class Class1 : IEnumerable<Class12>
{
    ;stuff
}

How can I do that?
My first thought was

class Class1 : IEnumerable<Class12> : IDisposable
{
        ;stuff
}

Which I obviously cannot do.

(edit)
Sorry, I believe it's

class Class1 : IEnumerable<Class12> , IDisposable
    {
            ;stuff
    }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.