^ Array = gcnew array

What programming language?

Someone know which language is used below:

String^ fileName = "C:\\Test1.txt";
array<Byte>^ Array = gcnew array<Byte>(512);
try
{
    FileStream^ fs = File::OpenRead(fileName);
    fs->Read(Array, 0, 512);fs->Close();
}
catch (...)
{ 
    MessageBox::Show("Disk error"); 
    Application::Exit();
}

and another example of this language:

int RotateLeft3 (int number)
{
    if ( ( number & 0x20000000 ) == 0x20000000 )
    {
        number <<= 3;number |= 1;
    }
    else
        number <<= 3;
    return number;
}
+3
source share
3 answers

This is a C ++ / CLI , in other words, a C ++ variant that runs on top of the .Net CLR.

In no case should you confuse it with native C ++.

+7
source

Its C ++ in .NET. You can specify using ^ as a pointer instead of *

+9
source

It looks like managed C ++ from Microsoft.

+3
source

All Articles