File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ public static int Main(string[] args)
2424 var command = args [ 0 ] ;
2525 switch ( command )
2626 {
27- case "DumpEnvironmentVariables" :
28- return CommandDumpEnvironmentVariables ( ) ;
2927 case "EchoAndSleepAndEcho" :
3028 return CommandEchoAndSleepAndEcho ( args ) ;
3129 case "EchoBack" :
@@ -50,20 +48,6 @@ public static int Main(string[] args)
5048 }
5149 }
5250
53- private static int CommandDumpEnvironmentVariables ( )
54- {
55- // Output in UTF-8 so that the output will not be affected by the current code page.
56- using var sw = new StreamWriter ( Console . OpenStandardOutput ( ) , Encoding . UTF8 ) ;
57-
58- var envVars = Environment . GetEnvironmentVariables ( ) ;
59- foreach ( var key in envVars . Keys . Cast < string > ( ) . OrderBy ( x => x , StringComparer . Ordinal ) )
60- {
61- sw . Write ( "{0}={1}\0 " , key , ( string ? ) envVars [ key ] ) ;
62- }
63-
64- return 0 ;
65- }
66-
6751 private static int CommandEchoAndSleepAndEcho ( string [ ] args )
6852 {
6953 Console . Out . Write ( args [ 1 ] ) ;
You can’t perform that action at this time.
0 commit comments