Maybe you're using the wrong tool for the job?
Could be easier to create a wrapper class with Managed C++ which you then can use from C#.
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Maybe you're using the wrong tool for the job?
Could be easier to create a wrapper class with Managed C++ which you then can use from C#.