Internal specifier in C++/CLI

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Subodh

    #1

    Internal specifier in C++/CLI

    Hi All,

    I had one doubt about C++/CLI
    Can we have an internal class and/or Internal member functions in a C+
    +/CLI assembly (as available in C#), if possible please let me know
    how do we specify the access modifiers


    Thanks and Regards,
    Subodh

  • =?Utf-8?B?RGF2aWQgQW50b24=?=

    #2
    RE: Internal specifier in C++/CLI

    At the outer class level, just use 'private'.
    Within a class (i.e., methods, fields, and inner classes), just use
    'internal'.
    e.g.,
    private ref class FooOuter
    {
    internal:
    void FooMethod()
    {
    }

    internal:
    ref class FooInner
    {
    };
    };
    --
    David Anton
    Source code converters: Convert between C#, C++, Java, and VB with the most accurate and reliable source code converters

    Convert between VB, C#, and C++
    Instant C#
    Instant VB
    Instant C++
    C++ to C# Converter
    C++ to VB Converter


    "Subodh" wrote:
    Hi All,
    >
    I had one doubt about C++/CLI
    Can we have an internal class and/or Internal member functions in a C+
    +/CLI assembly (as available in C#), if possible please let me know
    how do we specify the access modifiers
    >
    >
    Thanks and Regards,
    Subodh
    >
    >

    Comment

    Working...