I'm slightly confused with index range operator: I expected that the expression myString[..0] should be equvalent to myString[0..0], then myString.Substring(0, 1) or myString[0].ToString(), and in case of code below:
string myString = " abc";
string resultString = myString[..0];
the resultString value should be a single space " ". Unfortunately, I got String.Empty :(
Does anybody know why and can explain me, why I'm wrong?
The Microsoft docs doesn't describe similar cases (or I can't find them).



