Save

Save<T>(string key, T data)

Purpose: Saves data of type T to a specified file path.

Parameters:

  • key: A string that is used to determine the file path.

  • data: The data to be saved, constrained to reference types (classes).

Return Value: Returns true if the save operation was successful, false otherwise

Sample uses:

public void Save()
{
    bool result = SaveManager.Save(DATA_KEY, _data);
}

Last updated