Example #1
0
    // Modify the class. Apply a shift in rate value of Shift ( ShiftValue(0,0.01) means 0.01 for first element)
    public void ShiftValue(int Index, double Shift)
    {
        RateSet newRateSet = ((RateSet)List[Index]); // get 'Index' element

        newRateSet.SetValue(newRateSet.V + Shift);   // set new value
        List[Index] = newRateSet;
    }