c# assignment completed in c++