CSharpFactory.CompilationUnit Method
Containing Type: CSharpFactory
Assembly: Roslynator.CSharp.dll
Overloads
CompilationUnit(MemberDeclarationSyntax)
public static Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax CompilationUnit(Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax member)
Parameters
member MemberDeclarationSyntax
Returns
CompilationUnit(SyntaxList<UsingDirectiveSyntax>, MemberDeclarationSyntax)
public static Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax CompilationUnit(Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax> usings, Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax member)
Parameters
usings SyntaxList<UsingDirectiveSyntax>
member MemberDeclarationSyntax
Returns
CompilationUnit(SyntaxList<UsingDirectiveSyntax>, SyntaxList<MemberDeclarationSyntax>)
public static Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax CompilationUnit(Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax> usings, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax> members)
Parameters
usings SyntaxList<UsingDirectiveSyntax>
members SyntaxList<MemberDeclarationSyntax>