E
E
Er1ko2018-12-03 13:02:05
C++ / C#
Er1ko, 2018-12-03 13:02:05

Highlights red quotes ("") in C#, what should I do?

I want to display some message on the screen, I write:
Console.WriteLine("text");
The program works, but the quotes are highlighted in red, on hover it says "Represents text as a sequence of parts of UTF-16 code."
I read about the encoding system, but still I don’t understand what’s the matter?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#, 2018-12-03
@mindtester

The program works
means no errors. if there are errors, the program does not start
"Represents text as a sequence of UTF-16 code parts."
this is a quote from the documentation for the String class . you might as well hover over Console , or WriteLine , any language keyword or identifier. including own classes, methods, or local variables. and you can also put the cursor on keywords or library classes, and press F1
However, I still don't understand what's wrong?
these are just hints

D
d-stream, 2018-12-03
@d-stream

Either just ignore it or write @"blah blah blah"
(google "verbatim string")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question