MemberDeclarationListInfo.Replace(MemberDeclarationSyntax, MemberDeclarationSyntax) Method
Containing Type: MemberDeclarationListInfo
Assembly: Roslynator.CSharp.dll
Creates a new MemberDeclarationListInfo with the specified member replaced with the new member.
public Roslynator.CSharp.Syntax.MemberDeclarationListInfo Replace(Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax memberInList, Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax newMember)
Parameters
memberInList MemberDeclarationSyntax
newMember MemberDeclarationSyntax