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

Search Results for

    Class CsParameterDefaultValue

    Data model that represents the default value for a parameter.

    Inheritance
    object
    CsModel
    CsParameterDefaultValue
    Implements
    ICsParameterDefaultValue
    ICsModel
    IModelStatus
    IParent
    ILookup
    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 CsParameterDefaultValue : CsModel, ICsParameterDefaultValue, ICsModel, IModelStatus, IParent, ILookup

    Constructors

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

    Constructor for the CsParameterDefaultValue

    Declaration
    protected CsParameterDefaultValue(bool isLoaded, bool hasErrors, bool loadedFromSource, SourceCodeType language, string lookupPath, ParameterDefaultValueType valueType, string value, 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 path for the model in the model store.

    ParameterDefaultValueType valueType

    The type of default value assigned to the parameter.

    string value

    The value assigned as the default value.

    string parentPath

    The fully qualified path name for the parent model to 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

    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

    Value

    If the default value is a literal value the value will be set, otherwise it will be set to null.

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

    ValueType

    The type of default value assigned to the parameter.

    Declaration
    public ParameterDefaultValueType ValueType { get; }
    Property Value
    Type Description
    ParameterDefaultValueType

    Implements

    ICsParameterDefaultValue
    ICsModel
    IModelStatus
    IParent
    ILookup

    Extension Methods

    GenerateCSharpParameterExtensions.GenerateCSharpParameterDefaultValue(CsParameterDefaultValue, CsType)
    © CodeFactory, LLC. All rights reserved.