关注开源代码的实际应用
下载AStyle.Net.Interface.rar,然后在项目中引用AStyle.Net.dll:
- string input = File.ReadAllText("in.txt");
- string temp = "";
- temp = AStyle.Net.Interface.Format(input, "--mode=cs --style=ansi --indent=tab");
- File.WriteAllText("out.txt",temp.Trim());