/
CsvClassMap.cs
42 lines (37 loc) · 1.16 KB
/
CsvClassMap.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2009-2012 Josh Close
// This file is a part of CsvHelper and is licensed under the MS-PL
// See LICENSE.txt for details or visit http://www.opensource.org/licenses/ms-pl.html
// http://csvhelper.com
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
namespace CsvHelper.Configuration
{
///<summary>
/// Maps class properties to CSV fields.
///</summary>
public abstract class CsvClassMap
{
private readonly CsvPropertyMapCollection propertyMaps = new CsvPropertyMapCollection();
private readonly List<CsvPropertyReferenceMap> referenceMaps = new List<CsvPropertyReferenceMap>();
/// <summary>
/// Gets the constructor expression.
/// </summary>
public virtual NewExpression Constructor { get; protected set; }
/// <summary>
/// The class property mappings.
/// </summary>
public virtual CsvPropertyMapCollection PropertyMaps
{
get { return propertyMaps; }
}
/// <summary>
/// The class property reference mappings.
/// </summary>
public virtual List<CsvPropertyReferenceMap> ReferenceMaps
{
get { return referenceMaps; }
}
}
}