diff --git a/csharp/extractor/Semmle.Extraction.CSharp.Standalone/FileContent.cs b/csharp/extractor/Semmle.Extraction.CSharp.Standalone/FileContent.cs index 066aca36a26..bb181c4ac08 100644 --- a/csharp/extractor/Semmle.Extraction.CSharp.Standalone/FileContent.cs +++ b/csharp/extractor/Semmle.Extraction.CSharp.Standalone/FileContent.cs @@ -21,13 +21,13 @@ namespace Semmle.BuildAnalyser private readonly Func> getFiles; private readonly Func> getAlreadyDownloadedPackages; private readonly HashSet notYetDownloadedPackages = new HashSet(); - private Initializer Initialize { get; init; } + private readonly Initializer initialize; public HashSet NotYetDownloadedPackages { get { - Initialize.Run(); + initialize.Run(); return notYetDownloadedPackages; } } @@ -45,7 +45,7 @@ namespace Semmle.BuildAnalyser { get { - Initialize.Run(); + initialize.Run(); return useAspNetDlls; } } @@ -59,7 +59,7 @@ namespace Semmle.BuildAnalyser this.progressMonitor = progressMonitor; this.getFiles = getFiles; this.unsafeFileReader = unsafeFileReader; - Initialize = new Initializer(DoInitialize); + this.initialize = new Initializer(DoInitialize); }