I've a class in Managed C++ which is exposed to .NET environment (ie class is declared as ref class and therefore is visible to C# project).
And I need one of the public methods of this class to be hidden from C# user. This method will be used to access some internal data of the class but only internally in Managed C++.
Is it possible?
您可以使用access specifier internal
定义该方法。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.