I have some code, and it throws. I don't understand why.
string s="asdf";
Console.WriteLine(s[1..3]);
dynamic d="asdf";
Console.WriteLine(d[1..3]); // throws
// RuntimeBinderException: The best overloaded method match for 'string.this[int]' has some invalid arguments
Is there some statically resolved compiler magic? The generated IL suggests this.
callvirt System.String.Substring
Is there any way to use range indexing on dynamically declared expressions?
