Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created February 9, 2016 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/630ddfc5fe3d50be23ca to your computer and use it in GitHub Desktop.
Save dcomartin/630ddfc5fe3d50be23ca to your computer and use it in GitHub Desktop.
var assembly = Assembly.GetExecutingAssembly();
var resourceStream = assembly.GetManifestResourceStream("MyNamespace.fakedata.json");
using (var reader = new StreamReader(resourceStream, Encoding.UTF8))
{
return reader.ReadToEnd();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment