Last active
February 5, 2018 22:28
-
-
Save aybarsyalcin/25683c60a364b26535984c009f4047dc to your computer and use it in GitHub Desktop.
Assembly all resources file for xamarin forms GetManifestResourceNames (embeded resource forexample png)
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
Assembly assembly = Assembly.GetExecutingAssembly(); | |
string[] resources = assembly.GetManifestResourceNames(); | |
foreach (string resource in resources) | |
{ | |
if (resource.EndsWith(".png")) | |
{ | |
Stream stream = assembly.GetManifestResourceStream(resource); | |
if (stream != null) | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment