Created
February 9, 2016 02:43
-
-
Save dcomartin/630ddfc5fe3d50be23ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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