AgGateway.ADAPT.ISOv4Plugin.Loaders.CommentLoader.LoadListValues C# (CSharp) Метод

LoadListValues() приватный статический Метод

private static LoadListValues ( XmlNodeList inputNodes, CodedComment comment ) : void
inputNodes System.Xml.XmlNodeList
comment CodedComment
Результат void
        private static void LoadListValues(XmlNodeList inputNodes, CodedComment comment)
        {
            foreach (XmlNode inputNode in inputNodes)
            {
                var valueId = inputNode.GetXmlNodeValue("@A");
                var description = inputNode.GetXmlNodeValue("@B");

                if (string.IsNullOrEmpty(valueId) || string.IsNullOrEmpty(description))
                    continue;

                if (comment.Values == null)
                {
                    comment.Values = new Dictionary<string, EnumerationMember>();
                    comment.Comment.EnumeratedMembers = new List<EnumerationMember>();
                }

                var listValue = new EnumerationMember
                {
                    Value = description
                };

                comment.Comment.EnumeratedMembers.Add(listValue);
                comment.Values[valueId] = listValue;
            }
        }