示例#1
0
        private CodeWriterScope ScopeRaw(string start = "{", string end = "}", bool newLine = true)
        {
            LineRaw(start);
            CodeWriterScope codeWriterScope = new CodeWriterScope(this, end, newLine);

            _scopes.Push(codeWriterScope);
            return(codeWriterScope);
        }
示例#2
0
        public CodeWriterScope Scope(FormattableString line, string start = "{", string end = "}", bool newLine = true)
        {
            CodeWriterScope codeWriterScope = new CodeWriterScope(this, end, newLine);

            _scopes.Push(codeWriterScope);
            Line(line);
            LineRaw(start);
            return(codeWriterScope);
        }