Updated C++# to fix a memory and an ambiguity error, among others.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>