Exemple #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:CsvHelper.Configuration.CsvPropertyReferenceMap" /> class.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <param name="mapping">The <see cref="T:CsvHelper.Configuration.CsvClassMap" /> to use for the reference map.</param>
 public CsvPropertyReferenceMap(PropertyInfo property, CsvClassMap mapping)
 {
     if (mapping == null)
     {
         throw new ArgumentNullException("mapping");
     }
     Data = new CsvPropertyReferenceMapData(property, mapping);
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="CsvPropertyReferenceMap"/> class.
        /// </summary>
        /// <param name="member">The property/field.</param>
        /// <param name="mapping">The <see cref="CsvClassMap"/> to use for the reference map.</param>
        public CsvPropertyReferenceMap(MemberInfo member, CsvClassMap mapping)
        {
            if (mapping == null)
            {
                throw new ArgumentNullException(nameof(mapping));
            }

            data = new CsvPropertyReferenceMapData(member, mapping);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CsvPropertyReferenceMap"/> class.
        /// </summary>
        /// <param name="member">The property/field.</param>
        /// <param name="mapping">The <see cref="CsvClassMap"/> to use for the reference map.</param>
        public CsvPropertyReferenceMap( MemberInfo member, CsvClassMap mapping )
        {
            if( mapping == null )
            {
                throw new ArgumentNullException( nameof( mapping ) );
            }

            data = new CsvPropertyReferenceMapData( member, mapping );
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CsvPropertyReferenceMap"/> class.
        /// </summary>
        /// <param name="property">The property.</param>
        /// <param name="mapping">The <see cref="CsvClassMap"/> to use for the reference map.</param>
        public CsvPropertyReferenceMap( PropertyInfo property, CsvClassMap mapping )
        {
            if( mapping == null )
            {
                throw new ArgumentNullException( "mapping" );
            }

            data = new CsvPropertyReferenceMapData( property, mapping );
        }