public override string ToString() { string output = ""; output += "Description: " + Description + Environment.NewLine; output += "Status: " + Status + Environment.NewLine; output += "Revision: " + Revision + Environment.NewLine; output += "PartNumber: " + PartNumber.ToString() + Environment.NewLine; output += "Material: " + Material + Environment.NewLine; output += "WorkCentres: " + Environment.NewLine; foreach (var item in WorkCentres) { output += "\t" + item + Environment.NewLine; } output += "Length: " + Length.ToString() + Environment.NewLine; output += "Mass: " + Mass.ToString() + Environment.NewLine; output += "Finish: " + Finish + Environment.NewLine; output += "PurchaseInfo: " + PruchaseInfo + Environment.NewLine; output += "SupplierName: " + SupplierName + Environment.NewLine; output += "SupplierCode: " + SupplierCode.ToString() + Environment.NewLine; output += "Note: " + Note + Environment.NewLine; return(output); }