forked from bytecode77/bytecode-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConvertObjectOptions.cs
More file actions
44 lines (43 loc) · 1.48 KB
/
ConvertObjectOptions.cs
File metadata and controls
44 lines (43 loc) · 1.48 KB
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
using System;
namespace BytecodeApi
{
/// <summary>
/// Specifies flags for the conversion of objects, used by the <see cref="CSharp.ConvertObject{TDest}(object, TDest, ConvertObjectOptions)" /> method.
/// </summary>
[Flags]
public enum ConvertObjectOptions
{
/// <summary>
/// Specifies that no conversion flags are defined.
/// </summary>
None = 0,
/// <summary>
/// Specifies that character casing of property and field names is not considered.
/// </summary>
IgnoreCase = 1,
/// <summary>
/// Specifies that properties are not copied from the source <see cref="object" />.
/// </summary>
IgnoreProperties = 2,
/// <summary>
/// Specifies that fields are not copied from the source <see cref="object" />.
/// </summary>
IgnoreFields = 4,
/// <summary>
/// Specifies that properties from the source <see cref="object" /> are copied to fields of the destination <see cref="object" /> in addition to its properties, as long as the name matches.
/// </summary>
PropertiesToFields = 8,
/// <summary>
/// Specifies that fields from the source <see cref="object" /> are copied to properties of the destination <see cref="object" /> in addition to its fields, as long as the name matches.
/// </summary>
FieldsToProperties = 16,
/// <summary>
/// Specifies that non-public properties or fields are included.
/// </summary>
NonPublic = 32,
/// <summary>
/// Specifies that static properties or fields are included.
/// </summary>
Static = 64
}
}