public static StringBuilder RConstStringStringBuilder(this StringBuilder sb, IGConstString gConstString, StringBuilder indent, string eol, CancellationToken?ct = default) { ct?.ThrowIfCancellationRequested(); return(sb.Append($"{indent}const string {gConstString.GName} = \"{gConstString.GValue}\";{eol}")); }
public static IR1Top RConstString(this IR1Top r1Top, IGConstString gConstString) { r1Top.Sb.RConstStringStringBuilder(gConstString, r1Top.Indent, r1Top.Eol, r1Top.Ct); return(r1Top); }