Share via


TextLoader.From Method

Definition

Overloads

From(TextAndVersion)

Creates a new TextLoader from an already existing source text and version.

From(SourceTextContainer, VersionStamp, String)

Creates a TextLoader from a SourceTextContainer and version.

The text obtained from the loader will be the current text of the container at the time the loader is accessed.

From(TextAndVersion)

Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs

Creates a new TextLoader from an already existing source text and version.

public:
 static Microsoft::CodeAnalysis::TextLoader ^ From(Microsoft::CodeAnalysis::TextAndVersion ^ textAndVersion);
public static Microsoft.CodeAnalysis.TextLoader From (Microsoft.CodeAnalysis.TextAndVersion textAndVersion);
static member From : Microsoft.CodeAnalysis.TextAndVersion -> Microsoft.CodeAnalysis.TextLoader
Public Shared Function From (textAndVersion As TextAndVersion) As TextLoader

Parameters

textAndVersion
TextAndVersion

Returns

Applies to

From(SourceTextContainer, VersionStamp, String)

Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs
Source:
TextLoader.cs

Creates a TextLoader from a SourceTextContainer and version.

The text obtained from the loader will be the current text of the container at the time the loader is accessed.

public static Microsoft.CodeAnalysis.TextLoader From (Microsoft.CodeAnalysis.Text.SourceTextContainer container, Microsoft.CodeAnalysis.VersionStamp version, string filePath = default);
public static Microsoft.CodeAnalysis.TextLoader From (Microsoft.CodeAnalysis.Text.SourceTextContainer container, Microsoft.CodeAnalysis.VersionStamp version, string? filePath = default);
static member From : Microsoft.CodeAnalysis.Text.SourceTextContainer * Microsoft.CodeAnalysis.VersionStamp * string -> Microsoft.CodeAnalysis.TextLoader
Public Shared Function From (container As SourceTextContainer, version As VersionStamp, Optional filePath As String = Nothing) As TextLoader

Parameters

version
VersionStamp
filePath
String

Returns

Applies to