BadScript 2
Loading...
Searching...
No Matches
Immutable_Simple_Options.cs
Go to the documentation of this file.
1// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
2
3using System.Collections.Generic;
4
6{
8 {
9 private readonly string stringValue;
10 private readonly IEnumerable<int> intSequence;
11 private readonly bool boolValue;
12 private readonly long longValue;
13
14 public Immutable_Simple_Options(string stringValue, IEnumerable<int> intSequence, bool boolValue, long longValue)
15 {
16 this.stringValue = stringValue;
17 this.intSequence = intSequence;
18 this.boolValue = boolValue;
19 this.longValue = longValue;
20 }
21
22 [Option(HelpText = "Define a string value here.")]
23 public string StringValue { get { return stringValue; } }
24
25 [Option('i', Min = 3, Max = 4, HelpText = "Define a int sequence here.")]
26 public IEnumerable<int> IntSequence { get { return intSequence; } }
27
28 [Option('x', HelpText = "Define a boolean or switch value here.")]
29 public bool BoolValue { get { return boolValue; } }
30
31 [Value(0)]
32 public long LongValue { get { return longValue; } }
33 }
34
36 {
37 private readonly string stringValue;
38 private readonly IEnumerable<int> intSequence;
39 private readonly bool boolValue;
40 private readonly long longValue;
41
42 public Immutable_Simple_Options_Invalid_Ctor_Args(string stringValue1, IEnumerable<int> intSequence2, bool boolValue, long longValue)
43 {
44 this.stringValue = stringValue1;
45 this.intSequence = intSequence2;
46 this.boolValue = boolValue;
47 this.longValue = longValue;
48 }
49
50 [Option(HelpText = "Define a string value here.")]
51 public string StringValue { get { return stringValue; } }
52
53 [Option('i', Min = 3, Max = 4, HelpText = "Define a int sequence here.")]
54 public IEnumerable<int> IntSequence { get { return intSequence; } }
55
56 [Option('x', HelpText = "Define a boolean or switch value here.")]
57 public bool BoolValue { get { return boolValue; } }
58
59 [Value(0)]
60 public long LongValue { get { return longValue; } }
61 }
62}
Immutable_Simple_Options_Invalid_Ctor_Args(string stringValue1, IEnumerable< int > intSequence2, bool boolValue, long longValue)
Immutable_Simple_Options(string stringValue, IEnumerable< int > intSequence, bool boolValue, long longValue)