Braintree.ValidationErrors.PopulateTopLevelErrors C# (CSharp) 메소드

PopulateTopLevelErrors() 개인적인 메소드

private PopulateTopLevelErrors ( List childErrors ) : void
childErrors List
리턴 void
        private void PopulateTopLevelErrors(List<NodeWrapper> childErrors)
        {
            foreach (var childError in childErrors)
            {
                if (!errors.ContainsKey(childError.GetString("attribute")))
                    errors[childError.GetString("attribute")] = new List<ValidationError>();

                errors[childError.GetString("attribute")].Add(new ValidationError(childError.GetString("attribute"), childError.GetString("code"), childError.GetString("message")));
            }
        }
    }