forum

Home / DeveloperSection / Forums / C# iterate on class own elements

C# iterate on class own elements

Anonymous User 1819 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


c# c# 
Updated on 18-Aug-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By