public string GetOutputLine() { //build and return full output line string using the data members above (for Graig's file) StringBuilder output = new StringBuilder(FileSize + "," + FileDateTime.ToString("MMM d yyyy HH:mm") + "," + ItemName); output.Append((HasRev) ? ("," + ItemRev) : (",")); output.Append((HasSht) ? ("," + ItemSht) : (",")); output.Append(("," + Server)); output.Append("," + UncRaw + "," + UncPdf); return(output.ToString()); }
public override string ToString() { return(FileDateTime.ToString("yyyy-MM-dd hh:mm:ss tt")); }