I have textbox on an aspx page and on textbox text change event I noticed that even if the user enters 2,000 or $2,000, it's automatically converted to 2000. That caught me off guard as I thought I was supposed to remove the $ sign and commas from the number before I assign it to the integer variable. Something similar like below

int ID = txtID.text.Replace(",","").Replace("$", "");

Is this a feature introduced recently or has this been since c# 1.0?

Related posts

Recent Viewed