What is the logic/reason behind making
String s= new String(\"Hello World\");
Illegal in C#? The error is
The best over
It would be rather pointless to use the constructor to create a new string based on another existing string - that's why there is no constructor overload that allows this. Just do
string s = "Hello World";