public PackagesConfig(string filePath) { if (String.IsNullOrEmpty(filePath)) throw new ArgumentNullException(nameof(filePath)); m_file = filePath; var xml = File.ReadAllText(m_file); m_xml = XDocument.Parse(xml); }