I have below-mentioned list foo which contains the volume data for Pacific daylight time, If I want to see the volume in mountain standard time I am trying to move the list items based on the difference of time between 2 time zones
Let's say the difference is 3 hours I expect the result to be
B1Volume = B4Volume;
B2Volume = B5Volume;
...................
B21Volume = B24Volume;
var foo = new List<XYZ>();
public class XYZ
{
public String TimeZone { get; set; }
public Decimal? B1Volume { get; set; }
public Decimal? B2Volume { get; set; }
public Decimal? B3Volume { get; set; }
public Decimal? B4Volume { get; set; }
public Decimal? B5Volume { get; set; }
// .............
// .............
public Decimal? B24Volume { get; set; }
}
Am trying to follow Generic List - moving an item within the list