Users Pricing

forum

Home Forums C# iterate on class own elements – MindStick

C# iterate on class own elements

Anonymous User 2306 18 Aug 2014

I have created a class which inherits from List: Now I want to iterate the elements of the class in the class itself and return the object if it satisfies certain criteria

protected class myList : List<Object> 
{
    getElement(string name)
    {
        ??? LOOP AND IF CONDITION ???
         return element;
    }
}

Can you help? Thanks


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md