("hello").Remove('e');
So String.Remove has many overloads, one of which is : String.Remove(int startIndex)
Somehow the character I’ve written 'e' gets converted to an int and the WRONG overloaded function is called. This is completely unexpected behivour. Do I just have to live with this or is it possible to possibly file a bug so it gets corrected in the next version of the (holy) .NET framework?
String.Remove has precisely 2 overloads, both of which take an
intas their first parameter.I believe you are looking for String.Replace, as in