@@ -9,15 +9,15 @@ public static string GetDescription(IIndex startIndex, IIndex endIndex)
99 {
1010 return ( startIndex , endIndex ) switch
1111 {
12- ( BeginningIndex , FileExtensionIndex ) => "file name" ,
13- ( FixedIndex fix , FileExtensionIndex ) when fix . Index == 0 => "file name" ,
12+ ( BeginningIndex , FileExtensionIndex ) or
13+ ( FixedIndex { Index : 0 } , FileExtensionIndex ) => "file name" ,
1414
1515 ( FileExtensionIndex , EndIndex ) => "file extension" ,
1616
17- ( BeginningIndex , EndIndex ) => "all characters" ,
18- ( FixedIndex fix , EndIndex ) when fix . Index == 0 => "all characters" ,
17+ ( BeginningIndex , EndIndex ) or
18+ ( FixedIndex { Index : 0 } , EndIndex ) => "all characters" ,
1919
20- ( FixedIndex fix , EndIndex ) when fix . Index == - 1 => "the last character" ,
20+ ( FixedIndex { Index : - 1 } , EndIndex ) => "the last character" ,
2121 ( FixedIndex fix , EndIndex ) when fix . Index < 0 => "the last " + "character" . ToQuantity ( - fix . Index ) ,
2222
2323 _ => $ "characters from { startIndex . Description . ToString ( includePreposition : false ) } to { endIndex . Description . ToString ( includePreposition : false ) } ",
0 commit comments