CodeFactory Platform CodeFactory Platform
CodeFactory Platform CodeFactory Platform
CodeFactory

Search Results for

    Interface ICsModel

    Base implementation all C# models must implement.

    Inherited Members
    IDotNetModel.LoadedFromSource
    IDotNetModel.Language
    IDotNetModel.SourceDocument
    IModelStatus.IsLoaded
    IModelStatus.HasErrors
    IModelStatus.GetErrors()
    Namespace: CodeFactory.DotNet.CSharp
    Assembly: CodeFactory.DotNet.dll
    Syntax
    public interface ICsModel : IDotNetModel, IModelStatus

    Properties

    | Improve this Doc View Source

    ModelType

    The type of c# model that is implemented.

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

    Methods

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.