public static IR1Top RDelegateDeclaration(this IR1Top r1Top, IGDelegateDeclaration gDelegateDeclaration)
 {
     r1Top.Sb.RenderDelegateDeclarationPreambleStringBuilder(gDelegateDeclaration, r1Top.Indent, r1Top.Eol, r1Top.Ct);
     r1Top.RArgument(gArguments: gDelegateDeclaration.GArguments);
     r1Top.Sb.Append($");{r1Top.Eol}");
     return(r1Top);
 }
예제 #2
0
 public GDelegate(IGDelegateDeclaration gDelegateDeclaration = default, IGComment gComment = default)
 {
     GDelegateDeclaration = gDelegateDeclaration == default ? new GDelegateDeclaration() : gDelegateDeclaration;
     GComment             = gComment == default ? new GComment() : gComment;
     Id = new GDelegateId <TValue>();
 }
 public static StringBuilder RenderDelegateDeclarationPreambleStringBuilder(this StringBuilder sb, IGDelegateDeclaration gDelegateDeclaration, StringBuilder indent, string eol, CancellationToken?ct = default)
 {
     ct?.ThrowIfCancellationRequested();
     sb.Append($"{indent}{gDelegateDeclaration.GVisibility} delegate {gDelegateDeclaration.GType} {gDelegateDeclaration.GName}(");
     return(sb);
 }