Bootstrapper.Program.GetConfigDocument C# (CSharp) Method

GetConfigDocument() private static method

private static GetConfigDocument ( ) : XmlDocument
return System.Xml.XmlDocument
        private static XmlDocument GetConfigDocument()
        {
            var configPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "NuGet", "NuGet.config");
            if (File.Exists(configPath))
            {
                var document = new XmlDocument();
                document.Load(configPath);
                return document;
            }
            return null;
        }