public static T Deserialize <T>(string p_folder, string p_file, bool p_folderIsRelativePath = true, SerializationTypeEnum p_serializationType = SerializationTypeEnum.AutoDetect) { string v_resultPath = KiltUtils.GetCompleteDataPath(p_folder, p_file, p_folderIsRelativePath); T v_desserializedObject = Deserialize <T>(v_resultPath, p_serializationType); return(v_desserializedObject); }
public static string ReadAllText(string p_folder, string p_file, bool p_folderIsRelativePath = true) { string v_resultPath = KiltUtils.GetCompleteDataPath(p_folder, p_file, p_folderIsRelativePath, false); return(ReadAllText(v_resultPath)); }
public static bool WriteAllText(string p_textToWrite, string p_folder, string p_file, bool p_folderIsRelativePath = true) { string v_resultPath = KiltUtils.GetCompleteDataPath(p_folder, p_file, p_folderIsRelativePath); return(WriteAllText(p_textToWrite, v_resultPath)); }
//Always Serialize Outside Resources in Phone Devices public static bool Serialize <T>(T p_object, string p_folder, string p_file, bool p_folderIsRelativePath = true, SerializationTypeEnum p_serializationType = SerializationTypeEnum.AutoDetect) { string v_resultPath = KiltUtils.GetCompleteDataPath(p_folder, p_file, p_folderIsRelativePath); return(Serialize <T>(p_object, v_resultPath, p_serializationType)); }