Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个抽象对 Web 服务的访问的库,并且我正在使用 wsdl.exe 从 .NET 的 WSDL 文件生成代理类。我想避免从 Web 服务本身暴露任何类/枚举/等。有没有一种方法可以在不手动更改工具生成的代码的情况下使生成的代理类内部化?除了更改命名空间外,我没有看到任何命令行开关来执行此操作,如果有人知道引用在那里,这将不起作用。