Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Tag Helpers: enum attribute of nested enum type #1058

Closed
@johnpedersen-freightways

Description

#196 allows writing only the enum member as the attribute value.
When using a tag helper property with a nested enum type the generated code is invalid.

class Parent {
  public enum Foo {
    Bar,
  }
}
<mytaghelper someattr="Bar" />

The generated code is like this:

__MyTagHelper.SomeAttr = global::SomeNamespace.Parent+Child.Bar;

Microsoft.AspNetCore.Mvc.Razor v1.1.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions