共用方式為


SourceText.WithChanges 方法

定義

多載

WithChanges(TextChange[])

使用指定的變更,從此文字建構新的 SourceText。

WithChanges(IEnumerable<TextChange>)

使用指定的變更,從此文字建構新的 SourceText。

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

使用指定的變更,從此文字建構新的 SourceText。

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

參數

changes
TextChange[]

傳回

例外狀況

如果有任何變更與其他變更重迭。

備註

變更不需要依排序次序進行。 不過,如果效能更好, WithChanges(IEnumerable<TextChange>) 則效能會更好。

適用於

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

使用指定的變更,從此文字建構新的 SourceText。

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

參數

傳回

適用於