Change TagHelperDescriptor APIs to use IReadOnlyList.
- Change `TagHelperDescriptor.AllowedChildTags` to be `IReadOnlyList`. - Change `TagHelperDescriptor.BoundAttributes` to be `IReadOnlyList`. - Change `TagHelperDescriptor.TagMatchingRules` to be `IReadOnlyList`. - Change `TagMatchingRuleDescriptor.Attributes` to be `IReadOnlyList`. #1510
This commit is contained in:
parent
c34a99e188
commit
bba508c7c6
|
|
@ -22,13 +22,13 @@ namespace Microsoft.AspNetCore.Razor.Language
|
||||||
|
|
||||||
public string Name { get; protected set; }
|
public string Name { get; protected set; }
|
||||||
|
|
||||||
public IEnumerable<TagMatchingRuleDescriptor> TagMatchingRules { get; protected set; }
|
public IReadOnlyList<TagMatchingRuleDescriptor> TagMatchingRules { get; protected set; }
|
||||||
|
|
||||||
public string AssemblyName { get; protected set; }
|
public string AssemblyName { get; protected set; }
|
||||||
|
|
||||||
public IEnumerable<BoundAttributeDescriptor> BoundAttributes { get; protected set; }
|
public IReadOnlyList<BoundAttributeDescriptor> BoundAttributes { get; protected set; }
|
||||||
|
|
||||||
public IEnumerable<AllowedChildTagDescriptor> AllowedChildTags { get; protected set; }
|
public IReadOnlyList<AllowedChildTagDescriptor> AllowedChildTags { get; protected set; }
|
||||||
|
|
||||||
public string Documentation { get; protected set; }
|
public string Documentation { get; protected set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Razor.Language
|
||||||
|
|
||||||
public string TagName { get; protected set; }
|
public string TagName { get; protected set; }
|
||||||
|
|
||||||
public IEnumerable<RequiredAttributeDescriptor> Attributes { get; protected set; }
|
public IReadOnlyList<RequiredAttributeDescriptor> Attributes { get; protected set; }
|
||||||
|
|
||||||
public string ParentTag { get; protected set; }
|
public string ParentTag { get; protected set; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue