Skip to content

Instantly share code, notes, and snippets.

@srogovtsev
Created July 24, 2015 09:40
Show Gist options
  • Save srogovtsev/86b355ef6fbbd0c7b31d to your computer and use it in GitHub Desktop.
Save srogovtsev/86b355ef6fbbd0c7b31d to your computer and use it in GitHub Desktop.
Embedded Resource Reading
using (var ms = GetType().Assembly.GetManifestResourceStream(GetType().Namespace + "." + fileName).CheckNull(() => new InvalidOperationException()))
{
//whatever you want
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment