IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    217 - 问,C++CX:内部ref C++类使用internal替代public

    鸠摩智(everettjf)发表于 2012-12-09 04:13:00
    love 0

    ref class中,如果不是为了编写组件跨越ABI,提供给其他语言使用,就使用internal。

    wps_clip_image-17919

    详细资料

    A ref class can contain public, protected, and private function members; only public and protected members are emitted into metadata.

    A ref class can have standard C++ types in any private, internal, or protected private members.

    Public ref classes that have type parameters are not permitted. User-defined generic ref classes are not permitted. A private, internal, or protected private ref class may be a template.

    http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh699870.aspx

    鸠摩智(everettjf) 2012-12-09 12:13 发表评论



沪ICP备19023445号-2号
友情链接