private static void ParseMap <T>(
            MapNode mapNode,
            T domainObject,
            FixedFieldMap <T> fixedFieldMap,
            PatternFieldMap <T> patternFieldMap)
        {
            if (mapNode == null)
            {
                return;
            }

            foreach (var propertyNode in mapNode)
            {
                propertyNode.ParseField(domainObject, fixedFieldMap, patternFieldMap);
            }
        }
Ejemplo n.º 2
0
        private static void ParseMap <T>(MapNode mapNode, T domainObject, FixedFieldMap <T> fixedFieldMap, PatternFieldMap <T> patternFieldMap, List <string> requiredFields = null)
        {
            if (mapNode == null)
            {
                return;
            }

            foreach (var propertyNode in mapNode)
            {
                propertyNode.ParseField <T>(domainObject, fixedFieldMap, patternFieldMap);
                if (requiredFields != null)
                {
                    requiredFields.Remove(propertyNode.Name);
                }
            }
        }