Here is a little demo of how to create a class in C# and use for, foreach and while loops in order to loop through items of the class.