File tree 1 file changed +18
-11
lines changed
src/AtleX.CommandLineArguments/Configuration
1 file changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -79,17 +79,24 @@ public CommandLineArgumentsConfiguration()
79
79
80
80
this . _typeParsers = new List < TypeParser > ( )
81
81
{
82
- new BoolTypeParser ( ) ,
83
- new ByteTypeParser ( ) ,
84
- new CharTypeParser ( ) ,
85
- new DateTimeTypeParser ( ) ,
86
- new DecimalTypeParser ( ) ,
87
- new DoubleTypeParser ( ) ,
88
- new FloatTypeParser ( ) ,
89
- new IntTypeParser ( ) ,
90
- new LongTypeParser ( ) ,
91
- new ShortTypeParser ( ) ,
92
- new StringTypeParser ( ) ,
82
+ /*
83
+ This is ordered by most likely type parsers first so searching
84
+ for the correct type parser can be slightly faster for the most
85
+ used types
86
+ */
87
+ new StringTypeParser ( ) ,
88
+ new BoolTypeParser ( ) ,
89
+ new IntTypeParser ( ) ,
90
+
91
+ new FloatTypeParser ( ) ,
92
+ new DoubleTypeParser ( ) ,
93
+ new DateTimeTypeParser ( ) ,
94
+
95
+ new ByteTypeParser ( ) ,
96
+ new CharTypeParser ( ) ,
97
+ new DecimalTypeParser ( ) ,
98
+ new LongTypeParser ( ) ,
99
+ new ShortTypeParser ( ) ,
93
100
} ;
94
101
}
95
102
You can’t perform that action at this time.
0 commit comments