SuperUser
SuperUser

Reputation: 341

Convert array<String^> to System::String^

How do I convert CLI array to String^ ?

This is my example:

int main(array<String^>^ args)
{
    Application::Run(gcnew Main_Form(args));
    return 0;
}

Main_Form(array<String^> ^params)
{
    if (params->Length > 0)
    {
        String^ start_param;
        //how do i convert the array to normal String^ ?
    }
}

Upvotes: 1

Views: 1270

Answers (1)

SuperUser
SuperUser

Reputation: 341

After a year I found it out myself :)

String^ start_param = String::Concat(params);

Upvotes: 1

Related Questions