In PHP, when we use single quotes or double quotation marks, both forms have the function of declaring a string . There is only one small difference.
I'm now starting a C # study. When I tried to declare a string with single quotation marks, an error was generated.
[Table('ProductSuppliers')]
Too many characters in character literal
In PHP I had no problem using single quotes in cases like the one above.
Since the error is being pointed out, it makes me think that single quotes do not have the purpose I was thinking.
-
What is the purpose of Simple Quotes in C #?
-
What's the difference between it and Double Quotes?
-
Why did the error described above occur when I tried to use the
'ProductSupplier'
statement?