public static IR1Top RPropertyGroupInProjectUnit(this IR1Top r1Top, IGPropertyGroupInProjectUnit gPropertyGroupInProjectUnit) { r1Top.Ct?.ThrowIfCancellationRequested(); r1Top.Sb.RenderPropertyGroupInProjectUnit(gPropertyGroupInProjectUnit, r1Top.Indent, r1Top.IndentDelta, r1Top.Eol, r1Top.Ct); r1Top.Sb.Append(r1Top.Eol); return(r1Top); }
public static StringBuilder RenderPropertyGroupInProjectUnit(this StringBuilder sb, IGPropertyGroupInProjectUnit gPropertyGroupInProjectUnit, StringBuilder indent, string indentDelta, string eol, CancellationToken?ct = default) { ct?.ThrowIfCancellationRequested(); sb.Append($"{indent}<!-- {gPropertyGroupInProjectUnit.GDescription} -->{eol}"); sb.Append($"{indent}<PropertyGroup>{eol}"); foreach (var s in gPropertyGroupInProjectUnit.GPropertyGroupStatements) { sb.Append($"{indent}{indentDelta}{s}{eol}"); } sb.Append($"{indent}</PropertyGroup>{eol}"); return(sb); }