Created
July 24, 2015 09:40
-
-
Save srogovtsev/86b355ef6fbbd0c7b31d to your computer and use it in GitHub Desktop.
Embedded Resource Reading
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
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