Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created Feb 9, 2016
Embed
What would you like to do?
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