How To: Return Embedded Resource Content As String
Here is a utility method for returning any embedded resource content as a string:
public static partial class Tools { public static string GetEmbeddedContent(string resourceName) { Stream resourceStream = Assembly.GetAssembly(typeof(Tools)).GetManifestResourceStream(resourceName); StreamReader reader = new StreamReader(resourceStream); return reader.ReadToEnd(); } }