BadScript 2
Loading...
Searching...
No Matches
Options_With_Property_Throwing_Exception.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Collections.Generic;
3
using
System.Linq;
4
using
System.Text;
5
using
System.Threading.Tasks;
6
7
namespace
CommandLine.Tests.Fakes
8
{
9
class
Options_With_Property_Throwing_Exception
10
{
11
private
string
optValue
;
12
13
[Option(
'e'
)]
14
public
string
OptValue
15
{
16
get
17
{
18
return
optValue
;
19
}
20
set
21
{
22
if
(value !=
"good"
)
23
throw
new
ArgumentException(
"Invalid value, only accept 'good' value"
);
24
25
optValue
= value;
26
}
27
}
28
}
29
}
CommandLine.Tests.Fakes.Options_With_Property_Throwing_Exception
Definition
Options_With_Property_Throwing_Exception.cs:10
CommandLine.Tests.Fakes.Options_With_Property_Throwing_Exception.optValue
string optValue
Definition
Options_With_Property_Throwing_Exception.cs:11
CommandLine.Tests.Fakes.Options_With_Property_Throwing_Exception.OptValue
string OptValue
Definition
Options_With_Property_Throwing_Exception.cs:15
CommandLine.Tests.Fakes
Definition
Custom_Struct.cs:6
deps
commandlineparser
tests
CommandLine.Tests
Fakes
Options_With_Property_Throwing_Exception.cs
Generated by
1.9.8