Reading an answer I found the following instruction :
input[..^3]
I found that ^
change the orientation of the index. From end.
Doing a basic test it seams to be a feature of .net5
Console.WriteLine("Hello World"[^3]); // The 3rd char starting from the end
//Console.WriteLine("Hello World"[.^3]); // Error Identifier expected, invalid syntax
Console.WriteLine("Hello World"[..^3]); // Everything except the last 3, like a substring
https://dotnetfiddle.net/elDmzh
And mean "Everything except the last 3, like a substring", but that didn't gave me much result in the MSDN.
What is this indexer name? Is it a SubString syntactic sugar?