-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptionAttributes.cs
More file actions
45 lines (45 loc) · 1.35 KB
/
OptionAttributes.cs
File metadata and controls
45 lines (45 loc) · 1.35 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
namespace WhoisNET.Client.CmdOptions
{
/// <summary>
/// Manages the Option attribute; inherits from IOptionAttribute
/// </summary>
public class OptionAttribute : IOptionAttribute
{
/// <summary>
/// Name of the option
/// </summary>
public string? Name { get; set; }
/// <summary>
/// Short name of the option
/// </summary>
public string? ShortName { get; set; }
/// <summary>
/// Expected Value of the option
/// </summary>
public string? ExpectedValue { get; set; }
/// <summary>
/// Description of the option
/// </summary>
public string? Description { get; set; }
/// <summary>
/// Option name as an enum
/// </summary>
public OptionEnum OptionName { get; set; }
/// <summary>
/// Denotes if the option is a flag (true/false)
/// </summary>
public bool IsFlag { get; set; }
/// <summary>
/// Indicates if it's an unknown option
/// </summary>
public bool UnknownOption { get; set; }
/// <summary>
/// Type of the value
/// </summary>
public Type? ValueType { get; set; }
/// <summary>
/// Value of the option
/// </summary>
public object? Value { get; set; }
}
}