有没有办法只在使用中声明命名空间,而 delphi 会自动获取所有带有它的单元?
例如:
MyNamespace.Unit2.pas
MyNameSpace.Unit3.pas
unit Unit1
uses MyNameSpace;
最佳答案
Is there a way to declare only namespace in uses and delphi get automaticaly all units with it?
不可以。您必须为要使用的每个单位命名。
关于Delphi XE5 Union 声明 Namespaces in uses,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31241807/