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.
假设我有一个由其他人创建的复杂程序作为源代码,因为它是开源的。我只需要它的一小部分,但它似乎是相互关联的。
如何在 Visual c# 中自动剥离程序中不需要的所有内容?
例如,我定义了两个我想保留的值,即原始代码中已经存在的两个变量和一个插件(?)应该删除不影响这两个值的所有内容,包括 gui 元素。
怎么做?
您正在为需要人工推理的问题寻求软件解决方案。这是你的工作。使用查找/替换和 ReSharper 等工具可以让您的工作更轻松。