This is tenuously related to C#: How do i assign many variables with an integer(i) in for loop?.
Basically, I have an entity with properties Category1Results, Category2Results, Category3Results... etc up to Category60Results. There are also around 15 other properties. These map to a database table.
Is there a sensible way to assign to these?
A loop seems like it might be helpful, where (for example) the property with name Entity.Category+i+Result is assigned to, but I'm not sure how one would achieve that.
Any advice?