Skip to content

Commit

Permalink
Reduce memory in ManifestMetadata (#6185)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Dec 16, 2024
1 parent 58c381a commit c60352c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public Uri ProjectUrl

public RepositoryMetadata Repository { get; set; }

private IEnumerable<PackageDependencyGroup> _dependencyGroups = new List<PackageDependencyGroup>();
private IEnumerable<PackageDependencyGroup> _dependencyGroups = [];
public IEnumerable<PackageDependencyGroup> DependencyGroups
{
get
Expand All @@ -200,11 +200,11 @@ public IEnumerable<PackageDependencyGroup> DependencyGroups
}
}

public IEnumerable<FrameworkReferenceGroup> FrameworkReferenceGroups { get; set; } = new List<FrameworkReferenceGroup>();
public IEnumerable<FrameworkReferenceGroup> FrameworkReferenceGroups { get; set; } = [];

public IEnumerable<FrameworkAssemblyReference> FrameworkReferences { get; set; } = new List<FrameworkAssemblyReference>();
public IEnumerable<FrameworkAssemblyReference> FrameworkReferences { get; set; } = [];

private IEnumerable<PackageReferenceSet> _packageAssemblyReferences = new List<PackageReferenceSet>();
private IEnumerable<PackageReferenceSet> _packageAssemblyReferences = [];

[ManifestVersion(2)]
public IEnumerable<PackageReferenceSet> PackageAssemblyReferences
Expand Down

0 comments on commit c60352c

Please sign in to comment.