Generated static methods for creating instance by an IntPtr in the C++/CLI branch