Skip to main content

CSharpFactory.EventDeclaration Method

Containing Type: CSharpFactory

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
EventDeclaration(SyntaxTokenList, TypeSyntax, String, AccessorListSyntax)
EventDeclaration(SyntaxTokenList, TypeSyntax, SyntaxToken, AccessorListSyntax)

EventDeclaration(SyntaxTokenList, TypeSyntax, String, AccessorListSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax EventDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, string identifier, Microsoft.CodeAnalysis.CSharp.Syntax.AccessorListSyntax accessorList)

Parameters

modifiers SyntaxTokenList

type TypeSyntax

identifier String

accessorList AccessorListSyntax

Returns

EventDeclarationSyntax

EventDeclaration(SyntaxTokenList, TypeSyntax, SyntaxToken, AccessorListSyntax)

public static Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax EventDeclaration(Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.CSharp.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.SyntaxToken identifier, Microsoft.CodeAnalysis.CSharp.Syntax.AccessorListSyntax accessorList)

Parameters

modifiers SyntaxTokenList

type TypeSyntax

identifier SyntaxToken

accessorList AccessorListSyntax

Returns

EventDeclarationSyntax