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

Search Results for

    Interface ICsModel

    Base implementation all C# models must implement.

    Inherited Members
    IModelStatus.IsLoaded
    IModelStatus.HasErrors
    IModelStatus.GetErrors()
    Namespace: CodeFactory.WinVs.Models.CSharp
    Assembly: CodeFactory.WinVs.dll
    Syntax
    public interface ICsModel : IModelStatus

    Properties

    Language

    The target language this model was loaded from.

    Declaration
    SourceCodeType Language { get; }
    Property Value
    Type Description
    SourceCodeType

    LoadedFromSource

    Flag that determines if this model was loaded from source code or was loaded through reflects or symbol libraries.

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

    ModelType

    The type of c# model that is implemented.

    Declaration
    CsModelType ModelType { get; }
    Property Value
    Type Description
    CsModelType

    SourceDocument

    The fully qualified path to the document that was used to load the model from source. This will be populated if the model was loaded from source.

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

    Methods

    GetModel(string)

    Searchs for an existing C# model that has been loaded with the load of the source code.

    Declaration
    CsModel GetModel(string lookupPath)
    Parameters
    Type Name Description
    string lookupPath

    The lookup path that is assigned to a loaded model.

    Returns
    Type Description
    CsModel

    Returns the model as the base CsModel type.

    GetModel<T>(string)

    Searchs for an existing C# model that has been loaded with the load of the source code.

    Declaration
    T GetModel<T>(string lookupPath) where T : class, ICsModel
    Parameters
    Type Name Description
    string lookupPath

    The lookup path that is assigned to a loaded model.

    Returns
    Type Description
    T

    Returns the model as the identified type it will either return the instance or null if it is not found or not the correct type.

    Type Parameters
    Name Description
    T

    The target CsModel type to cast to before returning.

    © CodeFactory, LLC. All rights reserved.