private ValuePoint getValuePointWithIndex(DateTime date, ValuePoint valuePoint) { valuePoint.Index = getIndexForValuePoint(date); return valuePoint; }