File tree Expand file tree Collapse file tree
RoyalCode.SmartValidations Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace RoyalCode.SmartValidations;
88/// <summary>
99/// Struct to apply validation rules and collect the result.
1010/// </summary>
11- public readonly struct RuleSet : IRuleSet < RuleSet >
11+ public readonly ref struct RuleSet
1212{
1313 [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicProperties ) ]
1414 private readonly Type ? type ;
@@ -21,7 +21,7 @@ namespace RoyalCode.SmartValidations;
2121 /// </summary>
2222 /// <param name="type">The type being validated.</param>
2323 /// <param name="problems">The problems found, if any.</param>
24- private RuleSet ( Type ? type = null , Problems ? problems = null )
24+ private RuleSet ( [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicProperties ) ] Type ? type = null , Problems ? problems = null )
2525 {
2626 this . type = type ;
2727 this . problems = problems ;
You can’t perform that action at this time.
0 commit comments