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

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

private writeRebarDesignProps ( XmlWriter xml, Material mat ) : void
xml XmlWriter
mat Material
Результат void
        private void writeRebarDesignProps(XmlWriter xml, Material.Material mat)
        {
            MaterialDesignProps dProps = mat.DesignProperties;
            if (dProps is RebarDesignProps)
            {
                RebarDesignProps props = (RebarDesignProps)dProps;
                xml.WriteStartElement("Material");
                xml.WriteAttributeString("Material", mat.Name);
                xml.WriteAttributeString("Fy", props.Fy.ToString());
                xml.WriteAttributeString("Fu", props.Fu.ToString());
                xml.WriteEndElement();
            }
        }