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

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

private readUBC97_LRFD ( XmlNode node ) : void
node XmlNode
Результат void
        private void readUBC97_LRFD(XmlNode node)
        {
            UBC97_LRFD obj = null;

            foreach (DesignOptions opt in model.DesignOptions)
                if (opt is UBC97_LRFD)
                    obj = (UBC97_LRFD)opt;
            if (obj != null)
            {
                string zone = obj.GetSeismicZoneName(obj.SeisZone);

                obj.PatLLF = float.Parse(readAttribute(node, "PatLLF", obj.PatLLF.ToString()));
                obj.SRatioLimit = float.Parse(readAttribute(node, "SRatioLimit", obj.SRatioLimit.ToString()));
                obj.MaxIter = uint.Parse(readAttribute(node, "MaxIter", obj.MaxIter.ToString()));
                obj.PhiB = float.Parse(readAttribute(node, "PhiB", obj.PhiB.ToString()));
                obj.PhiC = float.Parse(readAttribute(node, "PhiC", obj.PhiC.ToString()));
                obj.PhiT = float.Parse(readAttribute(node, "PhiT", obj.PhiT.ToString()));
                obj.PhiV = float.Parse(readAttribute(node, "PhiV", obj.PhiV.ToString()));
                obj.PhiCA = float.Parse(readAttribute(node, "PhiCA", obj.PhiCA.ToString()));
                obj.CheckDefl = readAttribute(node, "CheckDefl", CodeYN(obj.CheckDefl)).Equals("Yes");
                obj.DLRat = float.Parse(readAttribute(node, "DLRat", obj.DLRat.ToString()));
                obj.SDLAndLLRat = float.Parse(readAttribute(node, "SDLAndLLRat", obj.SDLAndLLRat.ToString()));
                obj.LLRat = float.Parse(readAttribute(node, "LLRat", obj.LLRat.ToString()));
                obj.TotalRat = float.Parse(readAttribute(node, "TotalRat", obj.TotalRat.ToString()));
                obj.NetRat = float.Parse(readAttribute(node, "NetRat", obj.NetRat.ToString()));
                obj.SeisZone = GetSeismicZone(readAttribute(node, "SeisZone", zone));
                obj.ImpFactor = float.Parse(readAttribute(node, "ImpFactor", obj.ImpFactor.ToString()));
                model.SteelDesignOptions = obj;
            }
        }
Deserializer