Detailed Method Reference

Namespace: Canley.Utility.CSV.Standard
Class: CSVTable<T>

Definition

public List<string[]> GetRawGrid()
  • Description: Converts the scriptable object records and shadow dictionary data back into a raw string grid array, ensuring unmapped columns are preserved during export.

  • Workflow:

    1. Header Identification: Scans all unique public fields across subclasses and keys from the shadow dictionary to build a comprehensive header list.
    2. Priority Chain Resolution: Assembles data rows by prioritising live C# field values, falling back to shadow dictionary entries, and executing custom export hooks.
    3. Grid Generation: Returns the flat string grid structured for standard RFC 4180 serialization.
  • Returns: List<string[]> - The raw grid of strings representing the table data.

  • Example:

public void InspectRawGridData(CSVTable<ItemRecord> itemTable)
{
    List<string[]> grid = itemTable.GetRawGrid();
    if (grid.Count > 0)
    {
        Debug.Log(message: $"Total rows in raw grid: {grid.Count}");
    }
}

TIP

Use GetRawGrid when you need to inspect or process the flat string representation of your dataset before it gets written to disk.