CodeFactory for Windows CodeFactory for Windows
CodeFactory for Windows CodeFactory for Windows
CodeFactory

Search Results for

    Interface ICsSource

    Source definition from a source that was written in C#.

    Inherited Members
    ICsModel.LoadedFromSource
    ICsModel.Language
    ICsModel.ModelType
    ICsModel.SourceDocument
    ICsModel.GetModel<T>(string)
    ICsModel.GetModel(string)
    IModelStatus.IsLoaded
    IModelStatus.HasErrors
    IModelStatus.GetErrors()
    IParent.Parent
    ILookup.LookupPath
    Namespace: CodeFactory.WinVs.Models.CSharp
    Assembly: CodeFactory.WinVs.dll
    Syntax
    public interface ICsSource : ICsModel, IModelStatus, IParent, ILookup

    Properties

    Classes

    The classes that were defined in the source.

    Declaration
    IReadOnlyList<CsClass> Classes { get; }
    Property Value
    Type Description
    IReadOnlyList<CsClass>

    Delegates

    The delegates that were defined in the source.

    Declaration
    IReadOnlyList<CsDelegate> Delegates { get; }
    Property Value
    Type Description
    IReadOnlyList<CsDelegate>

    Enums

    The enumerations that were defined in the source.

    Declaration
    IReadOnlyList<CsEnum> Enums { get; }
    Property Value
    Type Description
    IReadOnlyList<CsEnum>

    HostedInProject

    Flag that determines if the source code was hosted in a project.

    Declaration
    bool HostedInProject { get; }
    Property Value
    Type Description
    bool

    Interfaces

    The interfaces that were defined in the source.

    Declaration
    IReadOnlyList<CsInterface> Interfaces { get; }
    Property Value
    Type Description
    IReadOnlyList<CsInterface>

    NamespaceReferences

    The namespaces that are used as references to access other libraries not hosted in the source document.

    Declaration
    IReadOnlyList<CsUsingStatement> NamespaceReferences { get; }
    Property Value
    Type Description
    IReadOnlyList<CsUsingStatement>

    Namespaces

    The namespaces that were defined in the source.

    Declaration
    IReadOnlyList<CsNamespace> Namespaces { get; }
    Property Value
    Type Description
    IReadOnlyList<CsNamespace>

    ProjectName

    The name of the project the source is hosted in. This will be null if this source is not hosted in a project.

    Declaration
    string ProjectName { get; }
    Property Value
    Type Description
    string

    RecordStructures

    The record structures that were defined in the source.

    Declaration
    IReadOnlyList<CsRecordStructure> RecordStructures { get; }
    Property Value
    Type Description
    IReadOnlyList<CsRecordStructure>

    Records

    The records that were defined in the source.

    Declaration
    IReadOnlyList<CsRecord> Records { get; }
    Property Value
    Type Description
    IReadOnlyList<CsRecord>

    Structures

    The structures that were defined in the source.

    Declaration
    IReadOnlyList<CsStructure> Structures { get; }
    Property Value
    Type Description
    IReadOnlyList<CsStructure>

    Methods

    AddToBeginningAsync(string)

    Adds the source code to the beginning of the ICsSource model.

    Declaration
    Task<CsSource> AddToBeginningAsync(string sourceCode)
    Parameters
    Type Name Description
    string sourceCode

    The source code that is to be added to the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    AddToEndAsync(string)

    Adds the source code the end of the ICsSource model.

    Declaration
    Task<CsSource> AddToEndAsync(string sourceCode)
    Parameters
    Type Name Description
    string sourceCode

    The source code that is to be added to the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    DeleteAsync()

    Deletes the content from the ICsSource model.

    Declaration
    Task<CsSource> DeleteAsync()
    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the delegate has been removed from the document.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    ReplaceAsync(string)

    Replaces the content of the ICsSource model.

    Declaration
    Task<CsSource> ReplaceAsync(string sourceCode)
    Parameters
    Type Name Description
    string sourceCode

    The source code that is to be used to replace the original definition in the document.

    Returns
    Type Description
    Task<CsSource>

    A newly loaded copy of the ICsSource model after the changes have been applied.

    Exceptions
    Type Condition
    DocumentException

    Error is raised when errors occur updating the source document.

    © CodeFactory, LLC. All rights reserved.