add post virtual in csharp and cpp