Skip to main content

MemberDeclarationListInfo.ReplaceRange(MemberDeclarationSyntax, IEnumerable<MemberDeclarationSyntax>) Method

Containing Type: MemberDeclarationListInfo

Assembly: Roslynator.CSharp.dll

Creates a new MemberDeclarationListInfo with the specified member replaced with new members.

public Roslynator.CSharp.Syntax.MemberDeclarationListInfo ReplaceRange(Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax memberInList, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax> newMembers)

Parameters

memberInList MemberDeclarationSyntax

newMembers IEnumerable<MemberDeclarationSyntax>

Returns

MemberDeclarationListInfo