Skip to content

Commit

Permalink
Update DefaultTypeInspector.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Oct 14, 2020
1 parent b6a43fe commit 868a4ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ private static bool IsRecord(IReadOnlyList<MemberInfo> members)
defaultValue = null;
if (IsRecord(property.DeclaringType!))
{
ConstructorInfo[] constructors = recordType.GetConstructors();
ConstructorInfo[] constructors = property.DeclaringType!.GetConstructors();

if (constructors.Length == 1)
{
Expand Down

0 comments on commit 868a4ab

Please sign in to comment.