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)); }
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)); }
public void WriteTo(AddOutput addOutput, object[] args) { }