added C# console application
changed pointer behavior