/**
     * read the field descriptions
     */

    private void ReadFieldTypesAndSizes(BinaryReader inputStream)
    {
        try
        {
            Fields = new List <TableField>();
            for (int i = 0; i < NumberOfFields; i++)
            {
                var pdxTableField = new TableField();
                pdxTableField.ReadFieldTypeAndSize(inputStream);
                Fields.Add(pdxTableField);
            }
        }
        catch (Exception ex)
        {
            throw new Exception("Exception in readFields", ex);
        }
    }