private static void LoadAllResourcesFromAssembly(
     Assembly assembly,
     ICollection <string> uriRegistry,
     List <MetadataArtifactLoaderResource> loaders)
 {
     foreach (string resourceName in MetadataArtifactLoaderCompositeResource.GetManifestResourceNamesForAssembly(assembly))
     {
         MetadataArtifactLoaderCompositeResource.CreateAndAddSingleResourceLoader(assembly, resourceName, uriRegistry, loaders);
     }
 }
 private static bool AssemblyContainsResource(Assembly assembly, ref string resourceName)
 {
     if (resourceName == null)
     {
         return(true);
     }
     foreach (string b in MetadataArtifactLoaderCompositeResource.GetManifestResourceNamesForAssembly(assembly))
     {
         if (string.Equals(resourceName, b, StringComparison.OrdinalIgnoreCase))
         {
             resourceName = b;
             return(true);
         }
     }
     return(false);
 }