I have four labels in a form: label1, label2, label3, and label4. Now, if this was VB.NET, I would have used the following code to change their contents without having to type the code for each one separately:
For I = 1 To 4
Me.Controls("label" & I).Text = "Some text"
I was wondering if there is an equivalent method to perform this task in C# as well.
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...