コード例 #1
0
ファイル: RoslynExtensions.cs プロジェクト: shekky/RestLess
 public static IEnumerable <UsingDirectiveSyntax> GetRequiredUsings(this InterfaceDeclarationSyntax self)
 {
     return(self.AncestorsAndSelf()
            .SelectMany(x => x.GetUsings())
            .Union(self.GetAllTransientDeclaringNamespace()));
 }