// Token: 0x060006CF RID: 1743 RVA: 0x0002B5FC File Offset: 0x000297FC private static Dictionary <string, EvaluationExpirationNotificationItemDAL.ExpirationInfo> Deserialize(string moduleExpirations) { Dictionary <string, EvaluationExpirationNotificationItemDAL.ExpirationInfo> dictionary = new Dictionary <string, EvaluationExpirationNotificationItemDAL.ExpirationInfo>(); if (!string.IsNullOrEmpty(moduleExpirations)) { foreach (string text in moduleExpirations.Split(new char[] { '|' })) { try { string[] array2 = text.Split(new char[] { ';' }); EvaluationExpirationNotificationItemDAL.ExpirationInfo expirationInfo = new EvaluationExpirationNotificationItemDAL.ExpirationInfo(); expirationInfo.DaysToExpire = Convert.ToInt32(array2[1]); if (array2.Length > 2 && !string.IsNullOrWhiteSpace(array2[2])) { expirationInfo.ModuleName = array2[2]; } if (array2.Length > 3 && !string.IsNullOrWhiteSpace(array2[3])) { expirationInfo.LastRemindMeLater = new DateTime?(DateTime.Parse(array2[3])); } dictionary[array2[0]] = expirationInfo; } catch (Exception ex) { NotificationItemDAL.log.Warn("Unable to parse evaluation expiration notification panel data", ex); } } } return(dictionary); }
private static Dictionary <string, EvaluationExpirationNotificationItemDAL.ExpirationInfo> Deserialize( string moduleExpirations) { Dictionary <string, EvaluationExpirationNotificationItemDAL.ExpirationInfo> dictionary = new Dictionary <string, EvaluationExpirationNotificationItemDAL.ExpirationInfo>(); if (!string.IsNullOrEmpty(moduleExpirations)) { string str1 = moduleExpirations; char[] chArray = new char[1] { '|' }; foreach (string str2 in str1.Split(chArray)) { try { string[] strArray = str2.Split(';'); EvaluationExpirationNotificationItemDAL.ExpirationInfo expirationInfo = new EvaluationExpirationNotificationItemDAL.ExpirationInfo(); expirationInfo.DaysToExpire = Convert.ToInt32(strArray[1]); if (strArray.Length > 2 && !string.IsNullOrWhiteSpace(strArray[2])) { expirationInfo.ModuleName = strArray[2]; } if (strArray.Length > 3 && !string.IsNullOrWhiteSpace(strArray[3])) { expirationInfo.LastRemindMeLater = new DateTime?(DateTime.Parse(strArray[3])); } dictionary[strArray[0]] = expirationInfo; } catch (Exception ex) { NotificationItemDAL.log.Warn((object)"Unable to parse evaluation expiration notification panel data", ex); } } } return(dictionary); }