@@ -11,16 +11,17 @@ namespace QRCoderConsole;
11
11
12
12
#if NET6_0_WINDOWS
13
13
[ System . Runtime . Versioning . SupportedOSPlatform ( "windows" ) ]
14
+ internal
14
15
#endif
15
- class MainClass
16
+ internal class MainClass
16
17
{
17
18
public static void Main ( string [ ] args )
18
19
{
19
20
var friendlyName = AppDomain . CurrentDomain . FriendlyName ;
20
21
var newLine = Environment . NewLine ;
21
22
var setter = new OptionSetter ( ) ;
22
23
23
- String fileName = null , outputFileName = null , payload = null ;
24
+ string fileName = null , outputFileName = null , payload = null ;
24
25
25
26
var eccLevel = QRCodeGenerator . ECCLevel . L ;
26
27
var imageFormat = SupportedImageFormat . Png ;
@@ -39,7 +40,7 @@ public static void Main(string[] args)
39
40
} ,
40
41
{ "f|output-format=" ,
41
42
$ "Image format for outputfile. Possible values: { string . Join ( ", " , Enum . GetNames ( typeof ( SupportedImageFormat ) ) ) } (default: png)",
42
- value => { Enum . TryParse ( value , true , out imageFormat ) ; }
43
+ value => Enum . TryParse ( value , true , out imageFormat )
43
44
} ,
44
45
{
45
46
"i|in=" ,
@@ -229,9 +230,8 @@ public class OptionSetter
229
230
{
230
231
public QRCodeGenerator . ECCLevel GetECCLevel ( string value )
231
232
{
232
- QRCodeGenerator . ECCLevel level ;
233
233
234
- Enum . TryParse ( value , out level ) ;
234
+ Enum . TryParse ( value , out QRCodeGenerator . ECCLevel level ) ;
235
235
236
236
return level ;
237
237
}
0 commit comments