create a namespace in c++/cli?
问题 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 :) 回答1: Same syntax for single namespaces. Nest for multiples, e.g. for First.Second.Third: namespace First { namespace Second {