Language: C#
Extension method for grabbing assemblies from a catalog - Useful with DeploymentCatalog
public static class CatalogExtensions { public static IEnumerable<Assembly> ToAssemblies(this ComposablePartCatalog catalog) { return catalog.Parts.Select(p => ((Type) ReflectionModelServices.GetPartType(p).Value).Assembly).Distinct(); } }
Report Abuse
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search

