CodeFactory Platform CodeFactory Platform
CodeFactory Platform CodeFactory Platform
CodeFactory

Search Results for

    Interface IDotNetType

    Model that defines a .net type.

    Inherited Members
    IDotNetModel.LoadedFromSource
    IDotNetModel.Language
    IDotNetModel.ModelType
    IDotNetModel.SourceDocument
    IModelStatus.IsLoaded
    IModelStatus.HasErrors
    IModelStatus.GetErrors()
    IDotNetGeneric.IsGeneric
    IDotNetGeneric.GenericParameters
    IDotNetGeneric.HasStrongTypesInGenerics
    IDotNetGeneric.GenericTypes
    Namespace: CodeFactory.DotNet
    Assembly: CodeFactory.DotNet.dll
    Syntax
    public interface IDotNetType : IDotNetModel, IModelStatus, IDotNetGeneric

    Properties

    | Improve this Doc View Source

    ArrayDimensions

    Gets a list of the dimensions that are assigned to the array. This will contain more then one value if the array is a jagged array. This will be empty if the type is not an array.

    Declaration
    IReadOnlyList<int> ArrayDimensions { get; }
    Property Value
    Type Description
    IReadOnlyList<int>
    | Improve this Doc View Source

    IsArray

    Flag that determines if the type is an array of the target type.

    Declaration
    bool IsArray { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsClass

    Flag that determines if the type is a class.

    Declaration
    bool IsClass { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsDelegate

    Flag that determines if the type is a delegate.

    Declaration
    bool IsDelegate { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsEnum

    Flag that determines if the type is a enumeration.

    Declaration
    bool IsEnum { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsGenericPlaceHolder

    Flag that determines if the type is a generic place holder definition.

    Declaration
    bool IsGenericPlaceHolder { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsInterface

    Flag that determines if the type is an interface.

    Declaration
    bool IsInterface { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsStructure

    Flag that determines if the type is a structure.

    Declaration
    bool IsStructure { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsTuple

    Flag that determine if the type is a Tuple

    Declaration
    bool IsTuple { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsValueType

    Flag that determines if the type is a value type.

    Declaration
    bool IsValueType { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    IsWellKnownType

    Flag that determines if the type is one of the well know data types of the language.

    Declaration
    bool IsWellKnownType { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    Name

    The name of the type.

    Declaration
    string Name { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    Namespace

    The namespace the type belongs to.

    Declaration
    string Namespace { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    SupportsDisposable

    Flag that determines if the type supports the interface IDisposable.

    Declaration
    bool SupportsDisposable { get; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    TupleTypes

    List of the types that are implemented in the Tuple. This will an empty list if the type is not a tuple.

    Declaration
    IReadOnlyList<IDotNetTupleTypeParameter> TupleTypes { get; }
    Property Value
    Type Description
    IReadOnlyList<IDotNetTupleTypeParameter>
    | Improve this Doc View Source

    ValueTypeDefaultValue

    The default value for well known value data types. This will be null if the value is not a well known value type.

    Declaration
    string ValueTypeDefaultValue { get; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    WellKnownType

    Enumeration of the target well known type this type represents.

    Declaration
    WellKnownLanguageType WellKnownType { get; }
    Property Value
    Type Description
    WellKnownLanguageType

    Methods

    | Improve this Doc View Source

    GetClassModel()

    Loads the full IDotNetClass model from the type definition.

    Declaration
    IDotNetClass GetClassModel()
    Returns
    Type Description
    IDotNetClass

    Return the fully loaded model or an empty model if the type is not a class.

    | Improve this Doc View Source

    GetDelegateModel()

    Loads the full IDotNetDelegate model from the type definition.

    Declaration
    IDotNetDelegate GetDelegateModel()
    Returns
    Type Description
    IDotNetDelegate

    Return the fully loaded model or an empty model if the type is not a delegate.

    | Improve this Doc View Source

    GetEnumModel()

    Loads the full IDotNetEnum model from the type definition.

    Declaration
    IDotNetEnum GetEnumModel()
    Returns
    Type Description
    IDotNetEnum

    Return the fully loaded model or an empty model if the type is not an enumeration.

    | Improve this Doc View Source

    GetInterfaceModel()

    Loads the full IDotNetInterface model from the type definition.

    Declaration
    IDotNetInterface GetInterfaceModel()
    Returns
    Type Description
    IDotNetInterface

    Return the fully loaded model or an empty model if the type is not an interface.

    | Improve this Doc View Source

    GetStructureModel()

    Loads the full IDotNetStructure model from the type definition.

    Declaration
    IDotNetStructure GetStructureModel()
    Returns
    Type Description
    IDotNetStructure

    Return the fully loaded model or an empty model if the type is not a structure.

    Extension Methods

    DotNetModelExtensions.FormatCSharpArraySignatureSyntax(IDotNetType)
    DotNetModelExtensions.FormatCSharpFullTypeName(IDotNetType)
    DotNetModelExtensions.FormatCSharpTupleSignatureSyntax(IDotNetType)
    DotNetModelExtensions.FormatCSharpValueSyntax(IDotNetType, string)
    © CodeFactory, LLC. All rights reserved.