Skip to main content

MemberDeclarationListInfo.ReplaceAt(Int32, MemberDeclarationSyntax) Method

Containing Type: MemberDeclarationListInfo

Assembly: Roslynator.CSharp.dll

Creates a new MemberDeclarationListInfo with the member at the specified index replaced with a new member.

public Roslynator.CSharp.Syntax.MemberDeclarationListInfo ReplaceAt(int index, Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax newMember)

Parameters​

index   Int32

newMember   MemberDeclarationSyntax

Returns​

MemberDeclarationListInfo