public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_compositeOption_subtype serial_Excel_compositeOption_subtype = serial_Class as FpmlSerializedCSharp.Excel_compositeOption_subtype;
            FpmlSerializedCSharp.Excel_vanillaCallPut          serial_Excel_vanillaCallPut          = serial_Excel_compositeOption_subtype.Excel_vanillaCallPut_;

            this.exerciseDate_        = StringConverter.xmlDateToDateTime(serial_Excel_vanillaCallPut.ExerciseDate_.ValueStr);
            this.payoffDate_          = StringConverter.xmlDateToDateTime(serial_Excel_vanillaCallPut.PayoffDate_.ValueStr);
            this.baseUnderlyingValue_ = serial_Excel_vanillaCallPut.BaseUnderlyingValue_.DoubleValue();
            this.underlyingCode_      = serial_Excel_vanillaCallPut.UnderlyingCode_.ValueStr;
            //Enum.Parse(typeof(CallPutEnum), this.callPut_);
            this.callPut_     = Enum.Parse(typeof(CallPutEnum), serial_Excel_vanillaCallPut.CallPut_.ValueStr) as CallPutEnum?;
            this.baseCoupon_  = (serial_Excel_vanillaCallPut.BaseCoupon_.DoubleValue() * 100.0).ToString();
            this.strike_      = (serial_Excel_vanillaCallPut.Strike_.DoubleValue() * 100.0).ToString();
            this.strikeValue_ = serial_Excel_vanillaCallPut.StrikeValue_.DoubleValue();
            this.partiRate_   = (serial_Excel_vanillaCallPut.PartiRate_.DoubleValue() * 100.0).ToString();

            this.descriptionUpdate();
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_compositeOption_subtype serial_Excel_compositeOption_subtype = serial_Class as FpmlSerializedCSharp.Excel_compositeOption_subtype;
            FpmlSerializedCSharp.Excel_vanillaCallPut          serial_Excel_vanillaCallPut          = serial_Excel_compositeOption_subtype.Excel_vanillaCallPut_;

            this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_vanillaCallPut.PayoffDate_.ValueStr);

            this.exerciseDate_ = StringConverter.xmlDateToDateTime(serial_Excel_vanillaCallPut.ExerciseDate_.ValueStr);

            this.underlyingCode_ = serial_Excel_vanillaCallPut.UnderlyingCode_.ValueStr;

            this.baseUnderlyingValue_ = serial_Excel_vanillaCallPut.BaseUnderlyingValue_.ValueStr;

            this.callPut_ = serial_Excel_vanillaCallPut.CallPut_.ValueStr;

            this.baseCoupon_ = serial_Excel_vanillaCallPut.BaseCoupon_.ValueStr;

            this.strike_ = serial_Excel_vanillaCallPut.Strike_.ValueStr;

            this.strikeValue_ = serial_Excel_vanillaCallPut.StrikeValue_.ValueStr;

            this.partiRate_ = serial_Excel_vanillaCallPut.PartiRate_.ValueStr;
        }