Example #1
0
 protected string GetSymbols(string value, int length)
 {
     if (string.IsNullOrEmpty(value))
     {
         return(string.Empty);
     }
     if (this.Checksum)
     {
         value += (string)(object)Product1D.GetChecksum(value);
     }
     return(value.PadLeft(length, Product1D.Padding));
 }
Example #2
0
 private static char GetChecksum(string value)
 {
     return(Product1D.GetChecksum(value, 3, 1, 10));
 }