Esempio n. 1
0
 public static bool IsPluginClass(this ClassDeclarationSyntax classDeclaration)
 {
     return(classDeclaration.GetExports()
            .Intersect(allPlugins)
            .Any());
 }
Esempio n. 2
0
 public static string[] GetMissingInterfaces(this ClassDeclarationSyntax classDeclaration)
 {
     return(classDeclaration.GetExports()
            .Except(classDeclaration.GetInterfaces())
            .ToArray());
 }
Esempio n. 3
0
 public static bool IsExportIPlugin(this ClassDeclarationSyntax classDeclaration)
 => classDeclaration.GetExports().Contains(nameof(IPlugin));