diff --git a/csharp/extractor/Semmle.Extraction.CIL/Context.cs b/csharp/extractor/Semmle.Extraction.CIL/Context.cs
index 825a05b5ad1..95e59f1544a 100644
--- a/csharp/extractor/Semmle.Extraction.CIL/Context.cs
+++ b/csharp/extractor/Semmle.Extraction.CIL/Context.cs
@@ -12,7 +12,7 @@ namespace Semmle.Extraction.CIL
/// Adds additional context that is specific for CIL extraction.
/// One context = one DLL/EXE.
///
- partial class Context : IDisposable
+ sealed partial class Context : IDisposable
{
readonly FileStream stream;
Entities.Assembly? assemblyNull;
@@ -58,7 +58,7 @@ namespace Semmle.Extraction.CIL
}
}
- void IDisposable.Dispose()
+ public void Dispose()
{
if (pdb != null)
pdb.Dispose();
diff --git a/csharp/extractor/Semmle.Extraction.CIL/Factories.cs b/csharp/extractor/Semmle.Extraction.CIL/Factories.cs
index c6fb673c940..841afb99a4b 100644
--- a/csharp/extractor/Semmle.Extraction.CIL/Factories.cs
+++ b/csharp/extractor/Semmle.Extraction.CIL/Factories.cs
@@ -9,7 +9,7 @@ namespace Semmle.Extraction.CIL
///
/// Provides methods for creating and caching various entities.
///
- public partial class Context
+ public sealed partial class Context
{
readonly Dictionary