Canguro.Model.Serializer.Serializer.writeConcreteDesignProps C# (CSharp) Метод

writeConcreteDesignProps() приватный Метод

private writeConcreteDesignProps ( XmlWriter xml, Material mat ) : void
xml System.Xml.XmlWriter
mat Canguro.Model.Material.Material
Результат void
        private void writeConcreteDesignProps(XmlWriter xml, Material.Material mat)
        {
            MaterialDesignProps dProps = mat.DesignProperties;
            if (dProps is ConcreteDesignProps)
            {
                ConcreteDesignProps props = (ConcreteDesignProps)dProps;
                string isLW = (props.IsLightweightConcrete) ? "Yes" : "No";

                xml.WriteStartElement("Material");
                xml.WriteAttributeString("Material", mat.Name);
                xml.WriteAttributeString("Fc", props.Fc.ToString());
                xml.WriteAttributeString("RebarFy", props.RebarFy.ToString());
                xml.WriteAttributeString("RebarFys", props.RebarFys.ToString());
                xml.WriteAttributeString("LtWtConc", isLW);
                xml.WriteAttributeString("LtWtFact", props.LightweightFactor.ToString());
                xml.WriteEndElement();
            }
        }