Mega Code Archive

 
Categories / Visual C++ .NET / Collections
 

Shallow copy creates another name for the array

#include "stdafx.h" using namespace System; int main() {    array<int>^ array1 = { 0, 1, 2};    array<int>^ array2 = array1; }