Partilhar via


SourceText.WithChanges Método

Definição

Sobrecargas

WithChanges(TextChange[])

Constrói um novo SourceText a partir deste texto com as alterações especificadas.

WithChanges(IEnumerable<TextChange>)

Constrói um novo SourceText a partir deste texto com as alterações especificadas.

WithChanges(TextChange[])

Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs

Constrói um novo SourceText a partir deste texto com as alterações especificadas.

public:
 Microsoft::CodeAnalysis::Text::SourceText ^ WithChanges(... cli::array <Microsoft::CodeAnalysis::Text::TextChange> ^ changes);
public Microsoft.CodeAnalysis.Text.SourceText WithChanges (params Microsoft.CodeAnalysis.Text.TextChange[] changes);
member this.WithChanges : Microsoft.CodeAnalysis.Text.TextChange[] -> Microsoft.CodeAnalysis.Text.SourceText
Public Function WithChanges (ParamArray changes As TextChange()) As SourceText

Parâmetros

changes
TextChange[]

Retornos

Exceções

Se alguma alteração se sobrepor a outras alterações.

Comentários

As alterações não precisam estar em ordem classificada. No entanto, WithChanges(IEnumerable<TextChange>) terá um desempenho melhor se eles forem.

Aplica-se a

WithChanges(IEnumerable<TextChange>)

Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs

Constrói um novo SourceText a partir deste texto com as alterações especificadas.

public:
 virtual Microsoft::CodeAnalysis::Text::SourceText ^ WithChanges(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::Text::TextChange> ^ changes);
public virtual Microsoft.CodeAnalysis.Text.SourceText WithChanges (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextChange> changes);
abstract member WithChanges : seq<Microsoft.CodeAnalysis.Text.TextChange> -> Microsoft.CodeAnalysis.Text.SourceText
override this.WithChanges : seq<Microsoft.CodeAnalysis.Text.TextChange> -> Microsoft.CodeAnalysis.Text.SourceText
Public Overridable Function WithChanges (changes As IEnumerable(Of TextChange)) As SourceText

Parâmetros

Retornos

Aplica-se a