private static ReadResourceString ( string fileName ) : string | ||
fileName | string | |
return | string |
private static string ReadResourceString(string fileName)
{
string resourcePath = string.Format("Microsoft.Azure.WebJobs.Script.WebHost.Resources.{0}", fileName);
Assembly assembly = Assembly.GetExecutingAssembly();
using (StreamReader reader = new StreamReader(assembly.GetManifestResourceStream(resourcePath)))
{
return reader.ReadToEnd();
}
}