Exemplo n.º 1
0
        private static XmlDocument ReadDocument(object caller, string documentName)
        {
            var documentContent = AssemblyResourceReader.ReadString(caller, documentName);

            var configDocument = new XmlDocument();

            configDocument.LoadXml(documentContent);

            return(configDocument);
        }
Exemplo n.º 2
0
        public static AppConfig ChangeByResource(object caller, string configResourceName)
        {
            var configContents = AssemblyResourceReader.ReadString(caller, configResourceName, true);

            return ChangeByContents(configContents);
        }