C# to Cpp method statment work.