I want to use - in the code below but Visual Studio doesn’t let me to use it and gives “error, unexpected character”.
Name = objFileInfo.Name.Substring(0,
objFileInfo.Name.Length – objFileInfo.Extension.Length);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is not a minus you are using:
Yours (char 8211, a math minus):
Minus (shorter, char 45 ascii, a dash which represents minus in C#):
Try copy the c# minus I use above and it will work 🙂