title: adding to List (of Byte())
body: <p>The function requires a generic list (of Byte()) to be passed as agrs and I just cannot seem to get anything to add to this list.I require printdata(0) &amp; (1) adding to it. </p>
  
  <pre><code>Dim printdata(1) As String
  
  
  labelname = "WasNow"
  
  printdata(0) = "9,99"
  printdata(1) = "6.99"
  
  Dim args = New List(Of Byte())
  
  args.Add(Convert.ToByte(printdata))
  
  
  ApplicationContext.CurrentDevice.Printer.Print(labelname, 1, args)
  Frmscanprint.Show()
  </code></pre>
  
  <p>This is the working C# version of the code with only one item to add. </p>
  
  <pre><code> private void printButton_Click(object sender, EventArgs e)
      {
          try
          {
              this.printNumber++;
              var args = new List&lt;byte[]&gt;() { Encoding.ASCII.GetBytes(string.Format(CultureInfo.InvariantCulture, "Test #{0}", this.printNumber)) };
              if (!ApplicationContext.AllDevicesSelected)
              {
                  ApplicationContext.CurrentDevice.Printer.Print("SamplePrint", 1, args);
              }
              else
              {
                  PrintSampleForEachDevice("SamplePrint", 1, args);
              }
          }
      }
  </code></pre>