In String.replace("\c","") what ASCII value is ""?
im just writing my own replace method for any weird characters and i used the ASCI value 0, null to replace unwanted characters, i was hoping for them to be 'deleted', but this doesnt work. A gap just appears in the string.
What exactly does String.Replace() do when removing a character for ""? 开发者_运维知识库Does it shift them all down and then 'delete' the final character or something?
Strings are immutable - you cannot change a string. You can only create a new string with the characters removed. If you replace a string with the empty string, you simply create a new string that does not contain the matched characters.
精彩评论