Skip to content

Commit 02a12e2

Browse files
committed
Refactored
1 parent a5bedd6 commit 02a12e2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Simplify.Web/Model/Validation/ValidationAttributesExecutor.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ private static void ValidateProperty(object? value, PropertyInfo propertyInfo, I
5353
attribute.Validate(value, propertyInfo, resolver);
5454
}
5555

56+
private static bool IsSystemType(Type type)
57+
{
58+
return type.Namespace?.StartsWith("System") ?? false;
59+
}
60+
5661
private void Validate(Type type, object? value, IDIResolver resolver)
5762
{
5863
if (Nesting)
@@ -69,10 +74,5 @@ private void Validate(Type type, object? value, IDIResolver resolver)
6974
Validate(item.PropertyType, currentItemValue, resolver);
7075
}
7176
}
72-
73-
private bool IsSystemType(Type type)
74-
{
75-
return type.Namespace?.StartsWith("System") ?? false;
76-
}
7777
}
7878
}

0 commit comments

Comments
 (0)