Example #1
0
        public void WriteTo(AddOutput addOutput, object[] args)
        {
            if (addOutput is null)
            {
                throw new System.ArgumentNullException(nameof(addOutput));
            }

            if (args is null)
            {
                throw new System.ArgumentNullException(nameof(args));
            }

            var sectionName = (string)args[0];
            var prefix      = (string)args[1];
            var suffix      = (string)args[2];

            addOutput(new OutputBuffer.ProtectedSection(sectionName, prefix, suffix));
        }
Example #2
0
        public void WriteTo(AddOutput addOutput, object[] args)
        {
            if (addOutput is null)
            {
                throw new System.ArgumentNullException(nameof(addOutput));
            }

            if (args is null)
            {
                throw new System.ArgumentNullException(nameof(args));
            }

            if (args.Length < 2)
            {
                throw new System.ArgumentException("args should have 2 parameters", nameof(args));
            }

            var alignmentId     = (int)args[0];
            var lineToBeAligned = (string)args[1];

            addOutput(new OutputBuffer.Aligned(alignmentId, lineToBeAligned));
        }
Example #3
0
 public void WriteTo(AddOutput addOutput, object[] args)
 {
 }