Class VsCSharpSource
Data model that represents C# source code.
Inherited Members
Namespace: CodeFactory.WinVs.Models.ProjectSystem
Assembly: CodeFactory.WinVs.dll
Syntax
public abstract class VsCSharpSource : VsModel, IVsCSharpSource, IVsModel, IModel<VisualStudioModelType>
Constructors
VsCSharpSource(bool, bool, IReadOnlyList<ModelException<VisualStudioModelType>>, string, CsSource)
Constructor for the base class VsCSharpSource
Declaration
protected VsCSharpSource(bool isLoaded, bool hasErrors, IReadOnlyList<ModelException<VisualStudioModelType>> modelErrors, string name, CsSource sourceCode)
Parameters
Type | Name | Description |
---|---|---|
bool | isLoaded | Flag that determines if the model is loaded. |
bool | hasErrors | Flag that determines if errors occurred while loading the model. |
IReadOnlyList<ModelException<VisualStudioModelType>> | modelErrors | The list of errors that occurred if any. |
string | name | The name of the model. |
CsSource | sourceCode | The loaded C# model data. |
Properties
SourceCode
The C# source in the document.
Declaration
public CsSource SourceCode { get; }
Property Value
Type | Description |
---|---|
CsSource |
Methods
LoadDocumentModelAsync()
Loads the visual studio document model from the current loaded source model.
Declaration
public abstract Task<VsDocument> LoadDocumentModelAsync()
Returns
Type | Description |
---|---|
Task<VsDocument> | The loaded document model. |