You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Gets or sets the maximum depth allowed when validating an object with recursion enabled.
21
23
/// Defaults to 32.
22
24
/// </summary>
23
25
publicstaticintMaxDepth{get;set;}=32;
24
26
27
+
/// <summary>
28
+
/// Determines if the specified <see cref="Type"/> has anything to validate.
29
+
/// </summary>
30
+
/// <remarks>
31
+
/// Objects of types with nothing to validate will always return <c>true</c> when passed to <see cref="TryValidate(object, out IDictionary{string, string[]})"/>.
/// <param name="recurse"><c>true</c> to recursively check descendant types; if <c>false</c> only simple values directly on the target type are checked.</param>
35
+
/// <returns><c>true</c> if the <see cref="Type"/> has anything to validate, <c>false</c> if not.</returns>
0 commit comments