public static IR1Top RDelegateGroup(this IR1Top r1Top, IGDelegateGroup gDelegateGroup) { r1Top.Sb.Append($"{r1Top.Indent}#region {gDelegateGroup.GName}{r1Top.Eol}"); r1Top.Indent.Append(r1Top.IndentDelta); foreach (var o in gDelegateGroup.GDelegates) { r1Top.RDelegate(o.Value); } r1Top.Indent.ReplaceFirst(r1Top.IndentDelta, ""); r1Top.Sb.Append($"{r1Top.Indent}#endregion {r1Top.Eol}"); return(r1Top); }
public static IGNamespace AddDelegateGroups(this IGNamespace gNamespace, IGDelegateGroup gDelegateGroup) { gNamespace.GDelegateGroups[gDelegateGroup.Id] = gDelegateGroup; return(gNamespace); }
public static IGClass AddDelegateGroup(this IGClass gClass, IGDelegateGroup gDelegateGroup) { gClass.GDelegateGroups[gDelegateGroup.Id] = gDelegateGroup; return(gClass); }