The other responder has the correct syntax, but that is not because you are in an array initializer.
There are two errors with string initialization.
- When using gcnew you do not need to enable it
^. You are creating a new object, not a new link. - When calling the constructor, you need parentheses.
So, the correct constructor syntax should have called gcnew String("Madam I'm Adam.").
, , . String, . , new String("Madam I'm Adam.") #: , new String .