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

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

private LoadComment ( XmlNode inputNode, string &commentId ) : CodedComment
inputNode System.Xml.XmlNode
commentId string
Результат CodedComment
        private CodedComment LoadComment(XmlNode inputNode, out string commentId)
        {
            var comment = new CodedComment
            {
                Comment = new EnumeratedRepresentation()
            };

            // Required fields. Do not proceed if they are missing
            commentId = inputNode.GetXmlNodeValue("@A");
            comment.Comment.Description = inputNode.GetXmlNodeValue("@B");
            if (commentId == null || comment.Comment.Description == null)
                return null;

            if (!LoadScope(inputNode.GetXmlNodeValue("@C"), comment))
                return null;

            // Optional fields
            LoadListValues(inputNode.SelectNodes("CCL"), comment);

            _taskDocument.LoadLinkedIds(commentId, comment.Comment.Id);
            return comment;
        }