コード例 #1
0
        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);
            }
        }
コード例 #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(domainObject, fixedFieldMap, patternFieldMap);
                requiredFields?.Remove(propertyNode.Name);
            }
        }