protected override void ProcessRecord() { base.ProcessRecord(); Dictionary <string, object> toWrite = TypeConversion.PSObjectToDict(InputObject); string line = stringifier.ReadLine(toWrite); if (!NoHeader && first) { WriteObject(stringifier.GetHeader()); first = false; } WriteObject(line); }
protected override void ProcessRecord() { base.ProcessRecord(); Dictionary <string, object> toWrite = TypeConversion.PSObjectToDict(inputObject); string line = stringifier.ReadLine(toWrite); if (first && !Append) { writer.WriteLine(stringifier.GetHeader()); first = false; } writer.WriteLine(line); }