Example #1
0
 void INamedScope.Build(Action <string> collector, bool closeScope) => _owner.Build(collector, closeScope);
 /// <summary>
 /// Builds and returns the code.
 /// </summary>
 /// <param name="this">This scope.</param>
 /// <param name="closeScope">True to close the scope.</param>
 /// <returns>The source code of this named scope.</returns>
 public static string ToString(this INamedScope @this, bool closeScope)
 {
     return(@this.Build(new StringBuilder(), closeScope).ToString());
 }