Skip to content

Hide internal parameter properties in blazor from the IntelliSense #12271

Closed
@Stamo-Gochev

Description

@Stamo-Gochev

Describe the bug

Is there a way to hide an internal property, which has the [Parameter]attribute, e.g.:

    public class ParentComponentBase : ComponentBase
    {
        [Parameter]
        internal string Value { get; set; }
    }`

Using EditorBrowsable does not seem to work either:

    public class ParentComponentBase : ComponentBase
    {
        [Parameter]
        [EditorBrowsable(EditorBrowsableState.Never)]
        internal string Value { get; set; }
    }

Expected behavior

The internal property is not visible.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: Won't FixResolved because we decided not to change the behavior reported in this issue.Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing one

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions