Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Types in ResourceIdentifier public #22612

Merged
merged 2 commits into from
Jul 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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