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:
N. Taylor Mullen 2017-07-06 16:00:49 -07:00
parent c34a99e188
commit bba508c7c6
2 changed files with 4 additions and 4 deletions

View File

@ -22,13 +22,13 @@ namespace Microsoft.AspNetCore.Razor.Language
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 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; }

View File

@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Razor.Language
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; }