Exemplo n.º 1
0
            private static TypeErrors CreateErrors(Type type, MemberSettings settings, MemberPath path)
            {
                CastingComparer temp;

                if (settings.IsEquatable(type) || settings.TryGetComparer(type, out temp))
                {
                    return(null);
                }

                var errors = VerifyCore(settings, type)
                             .VerifyRecursive(type, settings, path, GetNodeErrors)
                             .Finnish();

                return(errors);
            }
Exemplo n.º 2
0
 internal static TypeErrors GetOrCreateErrors(Type type, MemberSettings settings, MemberPath path = null)
 {
     return(settings.CopyErrors.GetOrAdd(type, t => CreateErrors(t, settings, path)));
 }
Exemplo n.º 3
0
 private static TypeErrors GetOrCreateErrors(Type type, MemberSettings settings, MemberPath path = null)
 {
     return(settings.EqualByErrors.GetOrAdd(type, t => CreateErrors(t, settings, path)));
 }
Exemplo n.º 4
0
 public MemberErrors(MemberPath path, TypeErrors errors)
 {
     this.Path   = path;
     this.Error  = errors;
     this.Errors = errors == null ? EmptyErrors : new[] { errors };
 }