public string RecordLine() { StringBuilder sb = new StringBuilder(); sb.Append(recordType); // (2) - static length sb.Append(SduBatchId.PadLeft(20, '0')); sb.Append(SduTranId); //(20) - static length sb.Append(ReceiptNumber.PadLeft(7, '0')); sb.Append(StrRetransmittalIndicator.PadRight(1)); sb.Append(PayorID.PadRight(13)); sb.Append(PayorSSN.PadRight(9)); sb.Append(PaidBy.PadRight(15)); sb.Append(PayorLastName.PadRight(25)); sb.Append(PayorFirstName.PadRight(20)); sb.Append(PayorMiddleName.PadRight(20)); sb.Append(PayorSuffix.PadRight(3)); sb.Append(StrAmount.PadLeft(15, '0')); sb.Append(StrOfcAmount.PadLeft(15, '0')); sb.Append(PaymentMode.PadRight(2)); sb.Append(PaymentSource.PadRight(4)); sb.Append(ReceiptReceivedDate.PadRight(8)); sb.Append(ReceiptEffectiveDate.PadRight(8)); sb.Append(CheckNumber.PadRight(18)); sb.Append(ComplianceExemptionReason.PadRight(1)); sb.Append(TargetedPaymentIndicator.PadRight(1, '0')); sb.Append(Fips.PadRight(7)); sb.Append(CourtCaseNumber.PadRight(25)); sb.Append(CourtJudgementNumber.PadLeft(3, '0')); sb.Append(CourtGuidelineNumber.PadLeft(3, '0')); sb.Append(ReasonCode.PadRight(3)); sb.Append(filler.PadRight(32)); return(sb.ToString()); }