private static XmlDocument ReadDocument(object caller, string documentName)
        {
            var documentContent = AssemblyResourceReader.ReadString(caller, documentName);

            var configDocument = new XmlDocument();

            configDocument.LoadXml(documentContent);

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

            return ChangeByContents(configContents);
        }
 private static Stream ReadTransformation(object caller, string transformationName)
 {
     return(AssemblyResourceReader.ReadStream(caller, transformationName));
 }