CodeFactory Platform CodeFactory Platform
CodeFactory Platform CodeFactory Platform
CodeFactory

Search Results for

    Interface IDotNetGenericParameter

    Model contract for information about a parameter used in a generic definition.

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

    Properties

    | Improve this Doc View Source

    ConstrainingTypes

    The constraining types the generic parameter must ad hear to. If there are no constraining types an empty list will be returned.

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

    HasClassConstraint

    Flag that determines if the generic parameter has a constraint that it must implement from a class.

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

    HasConstraintTypes

    Flag that determines if the generic parameter has constraining types the parameter must ad hear to.

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

    HasNewConstraint

    Flag that determines if the generic parameter has a constraint that is must support construction of a new type.

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

    HasOutKeyword

    Flag that determines if the generic parameter uses the out keyword.

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

    HasStructConstraint

    Flag that determines if the generic parameter has a constraint that is must implement from a structure.

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

    Type

    The type definition of the generic parameter.

    Declaration
    IDotNetType Type { get; }
    Property Value
    Type Description
    IDotNetType

    Extension Methods

    DotNetModelExtensions.FormatCSharpGenericWhereClauseSyntax(IDotNetGenericParameter)
    © CodeFactory, LLC. All rights reserved.