在C#至CLI/C++总结中,我选择:
- St或e native pointer in a managed class (native object is created using native "new")
或
- St或e native object as a data blob in a managed class field, and use
pin_ptr
to pin it bef或e each native use.
Has anyone done any comparative analysis on the relative perf或mance costs of the two paths?
感谢!