Do I still write String^ const in C++/CLI
In C++ it's recommended to have const-correctness everywhere. But s开发者_JAVA技巧ince in .Net world, the string content cannot be changed, (new string will be created), do I still write String^ const?
No. Just pass a handle to a string directly: method(String^ string)
精彩评论