コード例 #1
0
        public static void Write(this ReportLabels reportLabels, CSideWriter writer)
        {
            writer.BeginSection("LABELS");

            foreach (var reportLabel in reportLabels)
            {
                reportLabel.Write(writer);
            }

            writer.EndSection();
        }
コード例 #2
0
        public static void Write(this ReportLabels reportLabels, CSideWriter writer)
        {
            if (writer.CodeStyle.DoNotPrintEmptyLabels)
            {
                if (!reportLabels.Any())
                {
                    return;
                }
            }

            writer.BeginSection("LABELS");

            foreach (var reportLabel in reportLabels)
            {
                reportLabel.Write(writer);
            }

            writer.EndSection();
        }
コード例 #3
0
 public static IEnumerable <Invocation> ToInvocations(this ReportLabels reportLabels) => reportLabels.Select(l => l.ToInvocation());