blob: afe65f565db7f0c6de1989d50bfd9298cfd79d4e (
plain)
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
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Tango.FSE.Procedures.CSV
{
public class CsvColumn
{
public String Name { get; set; }
public String Description { get; set; }
public bool IsProperty { get; set; }
public PropertyInfo PropertyInfo { get; set; }
public FieldInfo FieldInfo { get; set; }
public Object GetValue(Object obj)
{
if (IsProperty)
{
return PropertyInfo.GetValue(obj);
}
else
{
return FieldInfo.GetValue(obj);
}
}
}
}
|