Skip to content

TPPersistencePackage

Tomasz Piowczyk edited this page Sep 8, 2018 · 3 revisions

You can see core wiki THERE

TPPersistPrefs

/// Returns hashset of supported types: int, float, string, bool
protected override HashSet<Type> GetSupportedTypes() {}

/// Called on Load() for field with PersistantAttribute
protected override object LoadValue(PersistantAttribute attribute, Type objectType){}

/// Called on Save() for field with PersistantAttribute
protected override void SaveValue(PersistantAttribute attribute, object saveValue){}

TPCryptography

/// Encrypt with AesManaged
public static string Encrypt(string value, string password){}

/// Decryptwith AesManaged
public static string Decrypt(string value, string password){}

public static string Encrypt<T>(string value, string password) where T : SymmetricAlgorithm, new(){}
public static string Decrypt<T>(string value, string password) where T : SymmetricAlgorithm, new(){}

Clone this wiki locally