public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.EventTrigger_A serial_EventTrigger_A = serial_Class as FpmlSerializedCSharp.EventTrigger_A; FpmlSerializedCSharp.VanillaFloatingRatePayoff_A serial_VanillaFloatingRatePayoff_A = serial_EventTrigger_A.VanillaFloatingRatePayoff_A_; this.dayCounter_ = serial_VanillaFloatingRatePayoff_A.DayCounter_.ValueStr; this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_VanillaFloatingRatePayoff_A.CalculationStartDate_.ValueStr); this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_VanillaFloatingRatePayoff_A.CalculationEndDate_.ValueStr); this.gearing_ = serial_VanillaFloatingRatePayoff_A.Gearing_.ValueStr; this.spread_ = serial_VanillaFloatingRatePayoff_A.Spread_.ValueStr; this.referenceStr_ = serial_VanillaFloatingRatePayoff_A.ReferenceStr_.ValueStr; this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_VanillaFloatingRatePayoff_A.PayoffDate_.ValueStr); FpmlSerializedCSharp.CapFloorOption serial_capFloorOption = serial_VanillaFloatingRatePayoff_A.CapFloorOption_; string capFloorOptiontype = serial_capFloorOption.Excel_type_.ValueStr; this.capFloorOptionViewModel_ = CapFloorOptionViewModel.CreateCapFloorOption(capFloorOptiontype); this.capFloorOptionViewModel_.setFromSerial(serial_capFloorOption); }