/// <summary>
        /// Initializes a new instance of the <see cref="PropertyMapperBase"/> class.
        /// </summary>
        /// <param name="info">The property map information</param>
        protected PropertyMapperBase(PropertyMapInfo info)
        {
            this.PropertyType = info.PropertyType;
            this.Property     = info.Property;

            if (info.Aliases == null || !info.Aliases.Any())
            {
                this.Aliases = new[] { this.Property.Name.ToUpperInvariant() };
            }
            else
            {
                this.Aliases = info.Aliases.Select(x => x.ToUpperInvariant()).ToArray();
            }

            this.Recursive    = info.Recursive;
            this.DefaultValue = info.DefaultValue ?? this.GetDefaultValue(this.PropertyType);
            this.culture      = info.Culture;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="CsvPropertyMapper"/> class.
 /// </summary>
 /// <param name="info">The property map information</param>
 public CsvPropertyMapper(PropertyMapInfo info)
     : base(info)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EnumPropertyMapper"/> class.
 /// </summary>
 /// <param name="info">The property map information</param>
 public EnumPropertyMapper(PropertyMapInfo info)
     : base(info)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DocTypeFactoryPropertyMapper"/> class.
 /// </summary>
 /// <param name="info">The property map information</param>
 public DocTypeFactoryPropertyMapper(PropertyMapInfo info)
     : base(info)
 {
 }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UmbracoPropertyMapper"/> class.
 /// </summary>
 /// <param name="info">The property map information</param>
 public UmbracoPropertyMapper(PropertyMapInfo info)
     : base(info)
 {
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FactoryPropertyMapperBase"/> class.
 /// </summary>
 /// <param name="info">The property map information</param>
 protected FactoryPropertyMapperBase(PropertyMapInfo info)
     : base(info)
 {
 }