Class VsCSharpSource
Data model that represents C# source code.
Inherited Members
Namespace: CodeFactory.VisualStudio
Assembly: CodeFactory.VisualStudio.dll
Syntax
public abstract class VsCSharpSource : VsModel, IVsCSharpSource, IVsModel, IModel<VisualStudioModelType>
  Constructors
| Improve this Doc View SourceVsCSharpSource(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
| Improve this Doc View SourceSourceCode
The C# source in the document.
Declaration
public CsSource SourceCode { get; }
  Property Value
| Type | Description | 
|---|---|
| CsSource | 
Methods
| Improve this Doc View SourceLoadDocumentModelAsync()
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.  |