Skip to content

Commit

Permalink
🩹 Remove not needed reflection in OptionalValueJsonConverterAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
desjoerd committed Jan 7, 2025
1 parent 64ac6b4 commit 35092c1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/OptionalValues/OptionalValueJsonConverterAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,7 @@ protected OptionalValueJsonConverterAttribute()
{
JsonConverter innerConverter = CreateInnerConverter();

return (JsonConverter?)Activator.CreateInstance(
type: typeof(OptionalValueJsonConverterFactory),
bindingAttr: BindingFlags.NonPublic | BindingFlags.Instance,
args: [innerConverter],
binder: null,
culture: null
);
return new OptionalValueJsonConverterFactory(innerConverter);
}

/// <summary>
Expand Down

0 comments on commit 35092c1

Please sign in to comment.