11// Copyright (c) .NET Foundation. All rights reserved.
22// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33
4- #nullable disable
5-
64using System ;
75using System . Collections . Generic ;
86using NuGet . Packaging . Core ;
@@ -17,7 +15,7 @@ public SourcePackageDependencyInfo(
1715 NuGetVersion version ,
1816 IEnumerable < PackageDependency > dependencies ,
1917 bool listed ,
20- SourceRepository source )
18+ SourceRepository ? source )
2119 : this (
2220 new PackageIdentity ( id , version ) ,
2321 dependencies ,
@@ -33,9 +31,9 @@ public SourcePackageDependencyInfo(
3331 NuGetVersion version ,
3432 IEnumerable < PackageDependency > dependencies ,
3533 bool listed ,
36- SourceRepository source ,
37- Uri downloadUri ,
38- string packageHash )
34+ SourceRepository ? source ,
35+ Uri ? downloadUri ,
36+ string ? packageHash )
3937 : this (
4038 new PackageIdentity ( id , version ) ,
4139 dependencies ,
@@ -50,9 +48,9 @@ public SourcePackageDependencyInfo(
5048 PackageIdentity identity ,
5149 IEnumerable < PackageDependency > dependencies ,
5250 bool listed ,
53- SourceRepository source ,
54- Uri downloadUri ,
55- string packageHash )
51+ SourceRepository ? source ,
52+ Uri ? downloadUri ,
53+ string ? packageHash )
5654 : base ( identity , dependencies )
5755 {
5856 Listed = listed ;
@@ -70,18 +68,18 @@ public SourcePackageDependencyInfo(
7068 /// <summary>
7169 /// Source repository the dependency information was retrieved from.
7270 /// </summary>
73- public SourceRepository Source { get ; }
71+ public SourceRepository ? Source { get ; }
7472
7573 /// <summary>
7674 /// The HTTP, UNC, or local file URI to the package nupkg.
7775 /// </summary>
7876 /// <remarks>Optional</remarks>
79- public Uri DownloadUri { get ; }
77+ public Uri ? DownloadUri { get ; }
8078
8179 /// <summary>
8280 /// Package hash
8381 /// </summary>
8482 /// <remarks>Optional</remarks>
85- public string PackageHash { get ; }
83+ public string ? PackageHash { get ; }
8684 }
8785}
0 commit comments