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

Search Results for

    Class CsNamespace

    Data model that represents the definition of a namespace.

    Inheritance
    object
    CsModel
    CsNamespace
    Implements
    ICsNamespace
    ICsModel
    IModelStatus
    IParent
    ILookup
    ISourceFiles
    Inherited Members
    CsModel.LocalModelErrors
    CsModel.ModelStore
    CsModel.IsLoaded
    CsModel.HasErrors
    CsModel.GetErrors()
    CsModel.LoadedFromSource
    CsModel.Language
    CsModel.ModelType
    CsModel.SourceDocument
    CsModel.LookupModel(string)
    CsModel.GetModel<T>(string)
    CsModel.GetModel(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: CodeFactory.WinVs.Models.CSharp
    Assembly: CodeFactory.WinVs.dll
    Syntax
    public abstract class CsNamespace : CsModel, ICsNamespace, ICsModel, IModelStatus, IParent, ILookup, ISourceFiles

    Constructors

    CsNamespace(bool, bool, bool, SourceCodeType, string, string, IReadOnlyList<string>, string, string, string, ModelStore<ICsModel>, IReadOnlyList<ModelLoadException>)

    Constructor for the CsNamespace

    Declaration
    protected CsNamespace(bool isLoaded, bool hasErrors, bool loadedFromSource, SourceCodeType language, string lookupPath, string modelSourceFile, IReadOnlyList<string> sourceFiles, string name, string parentPath, string sourceDocument = null, ModelStore<ICsModel> modelStore = null, IReadOnlyList<ModelLoadException> modelErrors = null)
    Parameters
    Type Name Description
    bool isLoaded

    Flag that determines if the model was loaded.

    bool hasErrors

    Flag that determine if errors were found creating the model.

    bool loadedFromSource

    Flag that determines if the model was loaded from source code or from an existing library.

    SourceCodeType language

    The target language the model was generated from.

    string lookupPath

    The fully qualified lookup path for the model to be used in the model store.

    string modelSourceFile

    The source code file the model was generated from.

    IReadOnlyList<string> sourceFiles

    The source files where the namespace is defined in.

    string name

    The fully qualified name of the namespace.

    string parentPath

    The fully qualified path for the model that is a parent of this model.

    string sourceDocument

    The source document that was used to build this model. This is optional parameter and can be null.

    ModelStore<ICsModel> modelStore

    Optional the lookup storage for models created during the compile or lookup of the model.

    IReadOnlyList<ModelLoadException> modelErrors

    Optional the error that occurred while creating the model.

    Properties

    LookupPath

    The fully qualified path for this model that can be used when searching the source for the model.

    Declaration
    public string LookupPath { get; }
    Property Value
    Type Description
    string

    ModelSourceFile

    If this model was loaded from source code, then this will contain the target file definition was loaded from. This will be null if not loaded from source.

    Declaration
    public string ModelSourceFile { get; }
    Property Value
    Type Description
    string

    Name

    The name of the namespace.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Parent

    The parent to the current model. This will return null if there is no parent for this model, or the parent could not be located.

    Declaration
    public CsModel Parent { get; }
    Property Value
    Type Description
    CsModel

    SourceFiles

    The source file or files in which the model was loaded from. This will be an empty enumeration if the source models were loaded from metadata only.

    Declaration
    public IReadOnlyList<string> SourceFiles { get; }
    Property Value
    Type Description
    IReadOnlyList<string>

    Implements

    ICsNamespace
    ICsModel
    IModelStatus
    IParent
    ILookup
    ISourceFiles
    © CodeFactory, LLC. All rights reserved.