ResxDiffLib.ResxDocument.ResxDocument C# (CSharp) Method

ResxDocument() public method

public ResxDocument ( System.Xml.Linq.XDocument xml ) : System
xml System.Xml.Linq.XDocument
return System
        public ResxDocument(XDocument xml)
        {
            if (xml.Root == null || xml.Root.Name != "root") {
                throw new ArgumentException("No <root> element found");
            }

            Data = xml.Root.Elements("data").Select(elem => new ResxData(elem)).ToList();

            _xml = new XDocument(xml);
        }