private static GetFromResources ( string resourceName ) : string | ||
resourceName | string | |
Résultat | string |
private static string GetFromResources(string resourceName)
{
Assembly assem = typeof(ScriptedJsonPatcher).Assembly;
using (Stream stream = assem.GetManifestResourceStream(resourceName))
{
using (var reader = new StreamReader(stream))
{
return reader.ReadToEnd();
}
}
}
}