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); }
internal static TypeErrors GetOrCreateErrors(Type type, MemberSettings settings, MemberPath path = null) { return(settings.CopyErrors.GetOrAdd(type, t => CreateErrors(t, settings, path))); }
private static TypeErrors GetOrCreateErrors(Type type, MemberSettings settings, MemberPath path = null) { return(settings.EqualByErrors.GetOrAdd(type, t => CreateErrors(t, settings, path))); }
public MemberErrors(MemberPath path, TypeErrors errors) { this.Path = path; this.Error = errors; this.Errors = errors == null ? EmptyErrors : new[] { errors }; }