Exemplo n.º 1
0
        //---------------------------------------------------------------
        public CResultAErreur Serialize(sc2i.common.C2iSerializer serializer)
        {
            int            nVersion = GetNumVersion();
            CResultAErreur result   = serializer.TraiteVersion(ref nVersion);

            if (!result)
            {
                return(result);
            }
            serializer.TraiteDoubleNullable(ref m_fCoutSaisi);
            serializer.TraiteIntNullable(ref m_nIdTypeProjet);
            serializer.TraiteDouble(ref m_fDureeJours);
            if (nVersion >= 1)
            {
                serializer.TraiteString(ref m_strCleProjetTemplate);
            }
            if (nVersion >= 2)
            {
                serializer.TraiteObject <C2iExpression>(ref m_formuleInitialisation);
            }
            return(result);
        }