阅读背景:

在C ++ / CLI包装器类中转换异常的最佳实践

来源:互联网 

I am writing a .NET wrapper class for an existing native class which throws exceptions. What are the best practices for translating between native C++ exceptions and Managed exceptions? Catch and re-throw on a one-to-one basis (e.g. std::invalid_argument -> System.System.ArgumentException)? Is there a mapping already drawn up somewhere?I am writing a .NET wrapper class for an existi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: