Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 public void WriteTo(AddOutput addOutput, object[] args)
 {
 }