File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ abstract class Tests
6767
6868 public abstract Greek CompiledSwitchByLength ( ) ;
6969
70- static readonly IDictionary < string , Greek > LookupD
70+ static readonly Dictionary < string , Greek > LookupD
7171 = Enum
7272 . GetValues < Greek > ( )
7373 . ToDictionary ( e => Enum . GetName ( e ) ! , e => e , StringComparer . Ordinal ) ;
@@ -260,7 +260,7 @@ public override Greek FastEnumParse()
260260 return e ;
261261 }
262262
263- static readonly IDictionary < string , Greek > LookupD
263+ static readonly Dictionary < string , Greek > LookupD
264264 = Enum
265265 . GetValues < Greek > ( )
266266 . ToDictionary ( e => Enum . GetName ( e ) ! , e => e , StringComparer . OrdinalIgnoreCase ) ;
@@ -326,7 +326,7 @@ public override Greek FastEnumParse()
326326 return e ;
327327 }
328328
329- static readonly IDictionary < string , Greek > LookupD
329+ static readonly Dictionary < string , Greek > LookupD
330330 = Enum
331331 . GetValues < Greek > ( )
332332 . ToDictionary ( e => Enum . GetName ( e ) ! , e => e , StringComparer . OrdinalIgnoreCase ) ;
Original file line number Diff line number Diff line change 11namespace Open . Text . Benchmarks ;
22
33[ AttributeUsage ( AttributeTargets . Field ) ]
4- public class LetterAttribute : Attribute
4+ public class LetterAttribute ( char upper , char lower ) : Attribute
55{
6- public LetterAttribute ( char upper , char lower )
7- {
8- Upper = upper ;
9- Lower = lower ;
10- }
11-
12- public char Upper { get ; }
13- public char Lower { get ; }
6+ public char Upper { get ; } = upper ;
7+ public char Lower { get ; } = lower ;
148
159 public bool EqualsLetter ( char letter )
1610 => letter == Upper || letter == Lower ;
You can’t perform that action at this time.
0 commit comments