How to Add StockItem to list : <p>I have this code for my test, can  you please help me</p>

<p>1)  A barcode label on a box in our warehouse has the following format
HKGB43563PC5 
The first 3 characters are always the country code, and the last 3 relate to the number of pieces. The value in the middle may vary in length, and may be a combination of letters and numbers in no particular order.</p>

<p>A <code>List&lt;T&gt;</code> has already been declared in the main application, you can assume it is accessible from both the class and the method.</p>

<pre><code>List&lt;StockItems&gt; stockList = new List&lt;StockItems&gt;();
</code></pre>

<p>Write code that would replace the comments in the method and the class below to ensure that the list gets populated.</p>

<pre><code>Private void AddStockItemToList(string barcode)
 {
   //ToDo Parse the string and add the items to the list.
 }


public class StockItems
{
    public int Quantity;
    public string OriginCountryCode;
    public string StockItemReference
    public Items(int qty, string country, string reference)
    {
       //
    }
}
</code></pre>
