Skip to content

Commit

Permalink
make Types public (#22612)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhou-msft authored Jul 14, 2021
1 parent 612538f commit e3c3b8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ internal virtual string ToResourceString()
StringBuilder builder = new StringBuilder(Parent.ToResourceString());
if (IsChild)
{
builder.Append($"/{ResourceType.Types.Last()}");
builder.Append($"/{ResourceType.Types[ResourceType.Types.Count - 1]}");
if (!string.IsNullOrWhiteSpace(Name))
builder.Append($"/{Name}");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ internal ResourceType(ResourceType parent, string childType)
/// </summary>
public string Type { get; private set; }

internal IList<string> Types { get; } = new List<string>();
/// <summary>
/// Gets the resource Types.
/// </summary>
public IReadOnlyList<string> Types { get; } = new List<string>();

/// <summary>
/// Determines if this resource type is the parent of the given resource.
Expand Down

0 comments on commit e3c3b8c

Please sign in to comment.