示例#1
0
        private IEnumerable <Property> ParseProperties(ObjectModel objectModel, params string[] exceptions)
        {
            foreach (var propertyModel in objectModel.ChildProperties())
            {
                if (propertyModel.Name.EqualsAnyIgnoreCase(exceptions))
                {
                    continue;
                }

                var nodeModel = propertyModel.Value;
                if (nodeModel == null)
                {
                    continue;
                }

                var propertyName  = propertyModel.Name;
                var propertyValue = ParseValue(nodeModel);

                yield return(new Property(propertyName, propertyValue));
            }
        }