Skip to main content

MemberDeclarationListInfo.ReplaceNode(SyntaxNode, SyntaxNode) Method

Containing Type: MemberDeclarationListInfo

Assembly: Roslynator.CSharp.dll

Creates a new MemberDeclarationListInfo with the specified old node replaced with a new node.

public Roslynator.CSharp.Syntax.MemberDeclarationListInfo ReplaceNode(Microsoft.CodeAnalysis.SyntaxNode oldNode, Microsoft.CodeAnalysis.SyntaxNode newNode)

Parameters

oldNode SyntaxNode

newNode SyntaxNode

Returns

MemberDeclarationListInfo