public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_counterUnderlyingCalcInfo serial_Excel_counterUnderlyingCalcInfo = serial_Class as FpmlSerializedCSharp.Excel_counterUnderlyingCalcInfo;

            FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_counterUnderlyingCalcInfo.Excel_underlyingCalcInfo_;
            //string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;
            this.excel_underlyingCalcInfoViewModel_ = new Excel_underlyingCalcInfoViewModel();
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_swapInterface serial_Excel_swapInterface = serial_Class as FpmlSerializedCSharp.Excel_swapInterface;
            FpmlSerializedCSharp.Excel_irs           serial_Excel_irs           = serial_Excel_swapInterface.Excel_irs_;

            FpmlSerializedCSharp.Excel_counterUnderlyingCalcInfo serial_excel_counterUnderlyingCalcInfo = serial_Excel_irs.Excel_counterUnderlyingCalcInfo_;
            string excel_counterUnderlyingCalcInfotype = serial_excel_counterUnderlyingCalcInfo.Excel_type_.ValueStr;

            this.excel_counterUnderlyingCalcInfoViewModel_ = Excel_counterUnderlyingCalcInfoViewModel.CreateExcel_counterUnderlyingCalcInfo(excel_counterUnderlyingCalcInfotype);
            this.excel_counterUnderlyingCalcInfoViewModel_.setFromSerial(serial_excel_counterUnderlyingCalcInfo);

            List <FpmlSerializedCSharp.Excel_swapLeg> serial_excel_swapLeg = serial_Excel_irs.Excel_swapLeg_;

            this.excel_swapLegViewModel_ = new ObservableCollection <Excel_swapLegViewModel>();
            foreach (var item in serial_excel_swapLeg)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_swapLegViewModel viewModel = Excel_swapLegViewModel.CreateExcel_swapLeg(type);
                viewModel.setFromSerial(item);
                this.excel_swapLegViewModel_.Add(viewModel);
            }
        }