From c60352c138a25e8a4bde0775a7c2e0600b186b0b Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 17 Dec 2024 08:03:38 +1100 Subject: [PATCH] Reduce memory in ManifestMetadata (#6185) --- .../PackageCreation/Authoring/ManifestMetadata.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/ManifestMetadata.cs b/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/ManifestMetadata.cs index 8e23a94fbbd..19a6ea51358 100644 --- a/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/ManifestMetadata.cs +++ b/src/NuGet.Core/NuGet.Packaging/PackageCreation/Authoring/ManifestMetadata.cs @@ -187,7 +187,7 @@ public Uri ProjectUrl public RepositoryMetadata Repository { get; set; } - private IEnumerable _dependencyGroups = new List(); + private IEnumerable _dependencyGroups = []; public IEnumerable DependencyGroups { get @@ -200,11 +200,11 @@ public IEnumerable DependencyGroups } } - public IEnumerable FrameworkReferenceGroups { get; set; } = new List(); + public IEnumerable FrameworkReferenceGroups { get; set; } = []; - public IEnumerable FrameworkReferences { get; set; } = new List(); + public IEnumerable FrameworkReferences { get; set; } = []; - private IEnumerable _packageAssemblyReferences = new List(); + private IEnumerable _packageAssemblyReferences = []; [ManifestVersion(2)] public IEnumerable PackageAssemblyReferences