Browse Source

Allow specifying an IDecompilerTypeSystem rather than a DecompilerTypeSystem to CSharpDecompiler

pull/3529/head
lordmilko 5 months ago committed by GitHub
parent
commit
9498c8d3d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

2
ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs

@ -257,7 +257,7 @@ namespace ICSharpCode.Decompiler.CSharp
/// <summary> /// <summary>
/// Creates a new <see cref="CSharpDecompiler"/> instance from the given <paramref name="typeSystem"/> and the given <paramref name="settings"/>. /// Creates a new <see cref="CSharpDecompiler"/> instance from the given <paramref name="typeSystem"/> and the given <paramref name="settings"/>.
/// </summary> /// </summary>
public CSharpDecompiler(DecompilerTypeSystem typeSystem, DecompilerSettings settings) public CSharpDecompiler(IDecompilerTypeSystem typeSystem, DecompilerSettings settings)
{ {
this.typeSystem = typeSystem ?? throw new ArgumentNullException(nameof(typeSystem)); this.typeSystem = typeSystem ?? throw new ArgumentNullException(nameof(typeSystem));
this.settings = settings; this.settings = settings;

Loading…
Cancel
Save