SyntaxGenerator.DelegateDeclaration Method

Definition

Creates a delegate declaration.

public abstract Microsoft.CodeAnalysis.SyntaxNode DelegateDeclaration (string name, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> parameters = default, System.Collections.Generic.IEnumerable<string> typeParameters = default, Microsoft.CodeAnalysis.SyntaxNode returnType = default, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default);
public Microsoft.CodeAnalysis.SyntaxNode DelegateDeclaration (string name, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode>? parameters = default, System.Collections.Generic.IEnumerable<string>? typeParameters = default, Microsoft.CodeAnalysis.SyntaxNode? returnType = default, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default);
public abstract Microsoft.CodeAnalysis.SyntaxNode DelegateDeclaration (string name, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode>? parameters = default, System.Collections.Generic.IEnumerable<string>? typeParameters = default, Microsoft.CodeAnalysis.SyntaxNode? returnType = default, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default);
abstract member DelegateDeclaration : string * seq<Microsoft.CodeAnalysis.SyntaxNode> * seq<string> * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.Accessibility * Microsoft.CodeAnalysis.Editing.DeclarationModifiers -> Microsoft.CodeAnalysis.SyntaxNode
member this.DelegateDeclaration : string * seq<Microsoft.CodeAnalysis.SyntaxNode> * seq<string> * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.Accessibility * Microsoft.CodeAnalysis.Editing.DeclarationModifiers -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function DelegateDeclaration (name As String, Optional parameters As IEnumerable(Of SyntaxNode) = Nothing, Optional typeParameters As IEnumerable(Of String) = Nothing, Optional returnType As SyntaxNode = Nothing, Optional accessibility As Accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Optional modifiers As DeclarationModifiers = Nothing) As SyntaxNode
Public Function DelegateDeclaration (name As String, Optional parameters As IEnumerable(Of SyntaxNode) = Nothing, Optional typeParameters As IEnumerable(Of String) = Nothing, Optional returnType As SyntaxNode = Nothing, Optional accessibility As Accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Optional modifiers As DeclarationModifiers = Nothing) As SyntaxNode

Parameters

name
String
parameters
IEnumerable<SyntaxNode>
typeParameters
IEnumerable<String>
returnType
SyntaxNode
accessibility
Accessibility

Returns

Applies to