C# Setting Properties using Index
- by Guazz
I have a business class that contains many properties for various stock-exchange price types. This is a sample of the class:
public class Prices
{
public decimal Today {get; set}
public decimal OneDay {get; set}
public decimal SixDay {get; set}
public decimal TenDay {get; set}
public decimal TwelveDay {get; set}
public…