コード例 #1
0
 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}"));
 }
コード例 #2
0
 public static IR1Top RConstString(this IR1Top r1Top, IGConstString gConstString)
 {
     r1Top.Sb.RConstStringStringBuilder(gConstString, r1Top.Indent, r1Top.Eol, r1Top.Ct);
     return(r1Top);
 }