C# iterate on class own elements -
C# iterate on class own elements -
i have created class inherits list: want iterate elements of class in class , homecoming object if satisfies criteria (e.g. property name):
protected class mylist : list<object> { getelement(string name) { ??? loop , if status ??? homecoming element; } }
can help? thanks
you're looking foreach(var item in this)
.
c# class loops self
Comments
Post a Comment