Skip to content

Commit 2f5b553

Browse files
Copilotcaptainsafia
andcommitted
Add PublicConstructors to DynamicallyAccessedMembers attribute in ValidatablePropertyInfo constructor
Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
1 parent 10a3187 commit 2f5b553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Http.Abstractions/src/Validation/ValidatablePropertyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public abstract class ValidatablePropertyInfo : IValidatableInfo
2121
/// Creates a new instance of <see cref="ValidatablePropertyInfo"/>.
2222
/// </summary>
2323
protected ValidatablePropertyInfo(
24-
[param: DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
24+
[param: DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties | DynamicallyAccessedMemberTypes.PublicConstructors)]
2525
Type declaringType,
2626
Type propertyType,
2727
string name,

0 commit comments

Comments
 (0)