Example #1
0
 internal static bool SerializeToFile <T>(T obj, string fileName, string password)
 {
     try
     {
         //string encryptedData = Encryption.EncryptString(SerializeDeserializeObject.SerializeObject<T>(obj), password);
         //SerializeDeserializeObject.SerializeObjectToFile<String>(fileName, true, encryptedData);
         SerializeDeserializeObject.SerializeObjectToFile <T>(fileName, true, obj);
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }