// Short cut to convert <property name="MyProperty" value="resourceWood,0,resourceLeather,2" />
    public static List <ItemStack> ParseProperties(string strData)
    {
        List <ItemStack> stacks = new List <ItemStack>();

        string[] array = strData.Split(new char[] { ',' });
        for (int i = 0; i < array.Length; i += 2)
        {
            stacks.Add(ItemsUtilities.CreateItemStack(array[i], array[i + 1]));
        }
        return(stacks);
    }
    // short cut to convert class properties
    public static List <ItemStack> ParseProperties(DynamicProperties dynamicProperties3)
    {
        List <ItemStack> stacks = new List <ItemStack>();

        foreach (KeyValuePair <string, object> keyValuePair in dynamicProperties3.Values.Dict.Dict)
        {
            stacks.Add(ItemsUtilities.CreateItemStack(keyValuePair.Key, keyValuePair.Value.ToString()));
        }

        return(stacks);
    }