J
Jason Short
OK if you have a string object and do the following:
string temp;
temp = "test this";
temp.Remove(0,4);
You should at LEAST get a warning that the string is not modified... I have
done this probably a dozen times when I meant to do the temp =
temp.Remove(0,4);, but I forgot. How can I turn that on to be a warning, or
an error. I am already running at the highest warning level and it doesn't
say a word about that...
I can't help but think junior programmers need that warning as well.
Jason
string temp;
temp = "test this";
temp.Remove(0,4);
You should at LEAST get a warning that the string is not modified... I have
done this probably a dozen times when I meant to do the temp =
temp.Remove(0,4);, but I forgot. How can I turn that on to be a warning, or
an error. I am already running at the highest warning level and it doesn't
say a word about that...
I can't help but think junior programmers need that warning as well.
Jason