Example #1
0
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            base.GetObjectData(info, context);
            info.AddValue("ClassPersistenceVersionMaterialComponent", CLASS_PERSISTENCE_VERSION, typeof(int));

            //has to store substance in a special way since it may be a compisite substance
            CompositeSubstance.StoreSubstance(info, substance);

            info.AddValue("MassFraction", massFraction, typeof(ProcessVarDouble));
            info.AddValue("MoleFraction", moleFraction, typeof(ProcessVarDouble));
        }
Example #2
0
        public override void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            base.GetObjectData(info, context);
            info.AddValue("ClassPersistenceVersionDryingMaterial", CLASS_PERSISTENCE_VERSION, typeof(int));
            info.AddValue("Name", this.name, typeof(string));
            info.AddValue("IsUserDefined", this.isUserDefined, typeof(bool));

            //has to store absoluteDryMaterial substance in a special way since it may be a compisite substance
            CompositeSubstance.StoreSubstance(info, absoluteDryMaterial);

            info.AddValue("MoistureName", moisture.Name, typeof(string));
            info.AddValue("MaterialType", materialType, typeof(MaterialType));
            info.AddValue("SolutionType", solutionType, typeof(SolutionType));
            info.AddValue("DuhringLines", duhringLines, typeof(CurveF[]));
        }