Detailed Property Reference
Namespace: Canley.Utility.CSV.Standard
Class: CSVRecord
Definition
public string this[string fieldName] { get; set; }-
Description: Indexer providing direct read and write access to the underlying shadow dictionary.
-
Workflow:
- Lookup: Accepts a string key corresponding to a CSV column header.
- Retrieval/Mutation: Bypasses strongly-typed properties to get or set raw string values directly within the record data.
-
Returns:
string- The string value associated with the specified field name. -
Example:
public void UpdateDynamicField(CSVRecord record)
{
record["CustomStatus"] = "Active";
string status = record["CustomStatus"];
Debug.Log(message: $"Updated status to: {status}");
}TIP
Use this indexer for quick, string-based access to columns that aren’t mapped to explicit properties on your strongly-typed record class.