I had this code

Code:
string name = "ABCDEF";
name.Replace("A", "B");
which does nothing. The compiler thought doesn't gave me a warning, something equivalent to the "statement with no effect" you get from GCC.
The warning level is at maximum.

Is there another way to set this on? Is there a reason that the compiler doesn't detect that the statement does nothing?