Skip to content

Instantly share code, notes, and snippets.

@aybarsyalcin
Last active February 5, 2018 22:28
Show Gist options
  • Save aybarsyalcin/25683c60a364b26535984c009f4047dc to your computer and use it in GitHub Desktop.
Save aybarsyalcin/25683c60a364b26535984c009f4047dc to your computer and use it in GitHub Desktop.
Assembly all resources file for xamarin forms GetManifestResourceNames (embeded resource forexample png)
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