-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathIntXSettings.cs
More file actions
50 lines (43 loc) · 1.3 KB
/
Copy pathIntXSettings.cs
File metadata and controls
50 lines (43 loc) · 1.3 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
45
46
47
48
49
50
namespace IntXLib
{
/// <summary>
/// <see cref="IntX" /> instance settings.
/// </summary>
sealed public class IntXSettings
{
#region Private fields
ToStringMode _toStringMode = ToStringMode.Fast;
bool _autoNormalize = false;
#endregion Private fields
/// <summary>
/// Creates new <see cref="IntXSettings" /> instance.
/// </summary>
/// <param name="globalSettings">IntX global settings to copy.</param>
internal IntXSettings(IntXGlobalSettings globalSettings)
{
// Copy local settings from global ones
_autoNormalize = globalSettings.AutoNormalize;
_toStringMode = globalSettings.ToStringMode;
}
#region Public properties
/// <summary>
/// To string conversion mode used in this <see cref="IntX" /> instance.
/// Set to value from <see cref="IntX.GlobalSettings" /> by default.
/// </summary>
public ToStringMode ToStringMode
{
get { return _toStringMode; }
set { _toStringMode = value; }
}
/// <summary>
/// If true then each operation is ended with big integer normalization.
/// Set to value from <see cref="IntX.GlobalSettings" /> by default.
/// </summary>
public bool AutoNormalize
{
get { return _autoNormalize; }
set { _autoNormalize = value; }
}
#endregion Public properties
}
}