Skip to content

[Blazor] LayoutAttribute.LayoutType should have proper trimming annotation #64119

@yugabe

Description

@yugabe

The LayoutAttribute property in Microsoft.AspNetCore.Components.LayoutAttribute should also have [DynamicallyAccessedMembers(Component)] annotation. Currently, only the constructor parameter is annotated, which gives consumers of the attribute a false warning when accessing the property.

public Type LayoutType { get; private set; }

Should be:

[DynamicallyAccessedMembers(Component)]
public Type LayoutType { get; private set; }

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor Components

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions