Detailed Property Reference

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

Definition

public CSVValidationMode validationMode { get; set; }
  • Description: Controls the strictness of the system during the hydration process when mapping CSV strings to C# fields.

  • Workflow:

    1. Evaluation: Checked by the hydration engine whenever a type conversion or data binding takes place.
    2. Handling: Determines whether a mismatch is ignored (Silent), logged to the console (Warn), or throws an exception (Fail).
  • Returns: CSVValidationMode - The current strictness mode enum (Silent, Warn, Fail).

  • Example:

public void ConfigureTableValidation(CSVTable<ItemRecord> itemTable)
{
    itemTable.validationMode = CSVValidationMode.Fail;
    Debug.Log(message: $"Validation mode set to: {itemTable.validationMode}");
}

TIP

Set validationMode to Fail during development to catch data entry errors early before they slip into production builds.