I have seen many examples of using .NET Framework namespaces in c++/cli like the following:
using namespace System;
using namespace System::IO;
But I haven’t seen any examples of creating my own. So I was wondering if there is a way to declare/create my own namespace as I would in C#:
namespace Animals
{
public class Dog
{
public Dog() {}
}
}
Thanks for your time 🙂
Same syntax for single namespaces. Nest for multiples, e.g. for First.Second.Third:
In C# the same would be: