Skip to content

Commit a409299

Browse files
committed
fix for API compatibility
1 parent ab07d86 commit a409299

File tree

1 file changed

+15
-1
lines changed
  • src/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi

1 file changed

+15
-1
lines changed

src/Smdn.Reflection.ReverseGenerating.ListApi.Core/Smdn.Reflection.ReverseGenerating.ListApi/ApiListWriter.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,25 @@ public class ApiListWriter {
3131
private readonly ApiListWriterOptions options;
3232
private readonly ILogger? logger;
3333

34+
public ApiListWriter(
35+
TextWriter baseWriter,
36+
Assembly assembly,
37+
ApiListWriterOptions? options
38+
)
39+
: this(
40+
baseWriter: baseWriter ?? throw new ArgumentNullException(nameof(baseWriter)),
41+
assembly: assembly ?? throw new ArgumentNullException(nameof(assembly)),
42+
options: options ?? new(),
43+
logger: null
44+
)
45+
{
46+
}
47+
3448
public ApiListWriter(
3549
TextWriter baseWriter,
3650
Assembly assembly,
3751
ApiListWriterOptions? options,
38-
ILogger? logger = null
52+
ILogger? logger
3953
)
4054
{
4155
this.BaseWriter = baseWriter ?? throw new ArgumentNullException(nameof(baseWriter));

0 commit comments

Comments
 (0)