Created
August 12, 2013 08:25
-
-
Save wtarr/6209058 to your computer and use it in GitHub Desktop.
Loading a embedded resource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var doc = new XmlDocument(); | |
using (var stream = this.GetType().Assembly.GetManifestResourceStream("MyNameSpace.Configurations.xml")) | |
{ | |
if (stream != null) doc.Load(stream); | |
} | |
_xmlcontents = doc.InnerXml; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment