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
3
using
System.Collections.Generic;
4
5
namespace
CommandLine.Tests.Fakes
6
{
7
public
class
Immutable_Simple_Options
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
35
public
class
Immutable_Simple_Options_Invalid_Ctor_Args
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
}
CommandLine.Tests.Fakes.Immutable_Simple_Options_Invalid_Ctor_Args
Definition
Immutable_Simple_Options.cs:36
CommandLine.Tests.Fakes.Immutable_Simple_Options_Invalid_Ctor_Args.boolValue
readonly bool boolValue
Definition
Immutable_Simple_Options.cs:39
CommandLine.Tests.Fakes.Immutable_Simple_Options_Invalid_Ctor_Args.StringValue
string StringValue
Definition
Immutable_Simple_Options.cs:51
CommandLine.Tests.Fakes.Immutable_Simple_Options_Invalid_Ctor_Args.intSequence
readonly IEnumerable< int > intSequence
Definition
Immutable_Simple_Options.cs:38
CommandLine.Tests.Fakes.Immutable_Simple_Options_Invalid_Ctor_Args.BoolValue
bool BoolValue
Definition
Immutable_Simple_Options.cs:57
CommandLine.Tests.Fakes.Immutable_Simple_Options_Invalid_Ctor_Args.Immutable_Simple_Options_Invalid_Ctor_Args
Immutable_Simple_Options_Invalid_Ctor_Args(string stringValue1, IEnumerable< int > intSequence2, bool boolValue, long longValue)
Definition
Immutable_Simple_Options.cs:42
CommandLine.Tests.Fakes.Immutable_Simple_Options_Invalid_Ctor_Args.LongValue
long LongValue
Definition
Immutable_Simple_Options.cs:60
CommandLine.Tests.Fakes.Immutable_Simple_Options_Invalid_Ctor_Args.longValue
readonly long longValue
Definition
Immutable_Simple_Options.cs:40
CommandLine.Tests.Fakes.Immutable_Simple_Options_Invalid_Ctor_Args.stringValue
readonly string stringValue
Definition
Immutable_Simple_Options.cs:37
CommandLine.Tests.Fakes.Immutable_Simple_Options_Invalid_Ctor_Args.IntSequence
IEnumerable< int > IntSequence
Definition
Immutable_Simple_Options.cs:54
CommandLine.Tests.Fakes.Immutable_Simple_Options
Definition
Immutable_Simple_Options.cs:8
CommandLine.Tests.Fakes.Immutable_Simple_Options.Immutable_Simple_Options
Immutable_Simple_Options(string stringValue, IEnumerable< int > intSequence, bool boolValue, long longValue)
Definition
Immutable_Simple_Options.cs:14
CommandLine.Tests.Fakes.Immutable_Simple_Options.longValue
readonly long longValue
Definition
Immutable_Simple_Options.cs:12
CommandLine.Tests.Fakes.Immutable_Simple_Options.intSequence
readonly IEnumerable< int > intSequence
Definition
Immutable_Simple_Options.cs:10
CommandLine.Tests.Fakes.Immutable_Simple_Options.BoolValue
bool BoolValue
Definition
Immutable_Simple_Options.cs:29
CommandLine.Tests.Fakes.Immutable_Simple_Options.StringValue
string StringValue
Definition
Immutable_Simple_Options.cs:23
CommandLine.Tests.Fakes.Immutable_Simple_Options.LongValue
long LongValue
Definition
Immutable_Simple_Options.cs:32
CommandLine.Tests.Fakes.Immutable_Simple_Options.stringValue
readonly string stringValue
Definition
Immutable_Simple_Options.cs:9
CommandLine.Tests.Fakes.Immutable_Simple_Options.boolValue
readonly bool boolValue
Definition
Immutable_Simple_Options.cs:11
CommandLine.Tests.Fakes.Immutable_Simple_Options.IntSequence
IEnumerable< int > IntSequence
Definition
Immutable_Simple_Options.cs:26
CommandLine.Tests.Fakes
Definition
Custom_Struct.cs:6
deps
commandlineparser
tests
CommandLine.Tests
Fakes
Immutable_Simple_Options.cs
Generated by
1.9.8