@@ -51,8 +51,8 @@ public bool IgnoreCase
5151 }
5252 }
5353
54- static readonly string [ ] ValidValues = new string [ ] { nameof ( Greek . Alpha ) , nameof ( Greek . Epsilon ) , nameof ( Greek . Phi ) , nameof ( Greek . Beta ) , nameof ( Greek . Gamma ) } ;
55- static readonly string [ ] InvalidValues = new string [ ] { "Apple" , "Orange" , "Pineapple" , "Grapefruit" , "Lemon" } ;
54+ static readonly string [ ] ValidValues = [ nameof ( Greek . Alpha ) , nameof ( Greek . Epsilon ) , nameof ( Greek . Phi ) , nameof ( Greek . Beta ) , nameof ( Greek . Gamma ) ] ;
55+ static readonly string [ ] InvalidValues = [ "Apple" , "Orange" , "Pineapple" , "Grapefruit" , "Lemon" ] ;
5656
5757 // To avoid branching overhead when benchmarking.
5858 abstract class Tests
@@ -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 ) ;
0 commit comments