Skip to content

Commit b9ef21d

Browse files
committed
chore: removes conflicting overload
Signed-off-by: Vincent Biret <[email protected]>
1 parent a72c5c2 commit b9ef21d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Microsoft.OpenApi/Models/OpenApiExtensibleDictionary.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,14 @@ public abstract class OpenApiExtensibleDictionary<T> : Dictionary<string, T>,
1717
IOpenApiExtensible
1818
where T : IOpenApiSerializable
1919
{
20-
/// <summary>
21-
/// Parameterless constructor
22-
/// </summary>
23-
protected OpenApiExtensibleDictionary() { }
24-
2520
/// <summary>
2621
/// Initializes a copy of <see cref="OpenApiExtensibleDictionary{T}"/> class.
2722
/// </summary>
2823
/// <param name="dictionary">The generic dictionary.</param>
2924
/// <param name="extensions">The dictionary of <see cref="IOpenApiExtension"/>.</param>
3025
protected OpenApiExtensibleDictionary(
3126
Dictionary<string, T> dictionary = null,
32-
IDictionary<string, IOpenApiExtension> extensions = null) : base(dictionary)
27+
IDictionary<string, IOpenApiExtension> extensions = null) : base(dictionary is null ? [] : dictionary)
3328
{
3429
Extensions = extensions != null ? new Dictionary<string, IOpenApiExtension>(extensions) : null;
3530
}

0 commit comments

Comments
 (0)