/// <summary> /// 注意方法里的stringBuilder添加的实际内容 /// 空格也会严重影响这输出的内容 /// </summary> private void AppendIfStart() { for (int index = 0; index < instructions.Count; index++) { var instruct = instructions[index]; appender.Append(index == 0 ? $"#if {instruct}" : $" && {instruct}"); } appender.AppendLine(); }
public NameSpaceBlock(CsharpScriptAppender appender, string @namespace) { this.appender = appender; appender.AppendLine($"namespace {@namespace}"); appender.AppenLeftBracketAndToRight(); }