private string GetStringForDataBusProperty(DataBusProperty <byte[]> property) { if (property == null) { return("Null"); } return(String.Format( "\n\r - Length {0} \n\r - Checksum: {1} ", property.HasValue ? property.Value.LongLength.ToString() : "Null", property.Checksum ?? "Null")); }
public ProcessInvoice(string invoiceNumber, byte[] invoiceFile) { InvoiceNumber = invoiceNumber; InvoiceFile = new DataBusProperty <byte[]>(invoiceFile); }