Exemplo n.º 1
0
 public static IProjectFileLoader GetLoaderForProjectFileExtension(
     HostWorkspaceServices workspaceServices,
     string extension
     )
 {
     return(workspaceServices
            .FindLanguageServices <IProjectFileLoader>(
                d =>
                d.GetEnumerableMetadata <string>("ProjectFileExtension")
                .Any(
                    e => string.Equals(e, extension, StringComparison.OrdinalIgnoreCase)
                    )
                )
            .FirstOrDefault());
 }