Load
T Load<T>(string key)
Purpose: Loads data of type T from a specified file path.
Parameters:
key: A string used to determine the file path for loading the data.
Return Value: Returns the loaded data of type T or null if loading fails.
public void Load()
{
_data = _dataPersistenceService.Load<Data>("Key");
}
Last updated