Esempio n. 1
0
        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"));
        }
Esempio n. 2
0
 public ProcessInvoice(string invoiceNumber, byte[] invoiceFile)
 {
     InvoiceNumber = invoiceNumber;
     InvoiceFile   = new DataBusProperty <byte[]>(invoiceFile);
 }