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

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

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