-
-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathPropertyEntity.cs
70 lines (59 loc) · 1.8 KB
/
PropertyEntity.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System;
using System.Collections.Generic;
using System.Reflection;
namespace KellermanSoftware.CompareNetObjects
{
/// <summary>
/// Generic class for holding a Property Info, or Dynamic Info
/// </summary>
public class PropertyEntity
{
/// <summary>
/// Constructor
/// </summary>
public PropertyEntity()
{
Indexers = new List<ParameterInfo>();
}
/// <summary>
/// If true, this is a dynamic property
/// </summary>
public bool IsDynamic { get; set; }
/// <summary>
/// Name of the property
/// </summary>
public string Name { get; set; }
/// <summary>
/// Value of the property
/// </summary>
public object Value { get; set; }
/// <summary>
/// Let me reflect on this day
/// </summary>
public Type ReflectedType { get; set; }
/// <summary>
/// The type of the parent
/// </summary>
public Type DeclaringType { get; set; }
/// <summary>
/// The type of the property
/// </summary>
public Type PropertyType { get; set; }
/// <summary>
/// If the property can be read from
/// </summary>
public bool CanRead { get; set; }
/// <summary>
/// If the property can be written to
/// </summary>
public bool CanWrite { get; set; }
/// <summary>
/// Indexers for the property
/// </summary>
public List<ParameterInfo> Indexers { get; set; }
/// <summary>
/// Reference to the property info
/// </summary>
public PropertyInfo PropertyInfo { get; set; }
}
}