Esempio n. 1
0
        public bool MapValueItem(string item)
        {
            if (this.IsValueOptionDefined &&
                this.valueOptionIndex < this.valueOptionAttributeList.Count)
            {
                var valueOption = this.valueOptionAttributeList[this.valueOptionIndex++];
                var propertyWriter = new PropertyWriter(valueOption.Left, this.parsingCulture);
                return ReflectionUtil.IsNullableType(propertyWriter.Property.PropertyType) ?
                    propertyWriter.WriteNullable(item, this.target) :
                    propertyWriter.WriteScalar(item, this.target);
            }

            return this.IsValueListDefined && this.AddValueItem(item);
        }