C# Substring() stops string at & symbol -


c# substring() doesn't work, stops before & symbol:

var name = "my_company_&_friends"; var sub = name.substring(2); // sub should string starting symbol index 2 // sub should "_company_&_friends" // "_company_" 

is bug ? how fix ?

it expecting
http://csharppad.com/gist/f38e23c03c66664698a7

what doing after causing issue.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -