public void CreateBirthdaysDateList() { if (User != null) { foreach (User currentFriend in User.Friends) { DateTime bday = new DateTime(); if (currentFriend.Birthday != null) { const bool v_UserOverride = true; bday = DateTime.Parse(currentFriend.Birthday.ToString(), new CultureInfo("en-US", !v_UserOverride)); CustomDate date = new CustomDate { Date = bday }; Birthdays.Add(currentFriend.Id, date); } } } }
public int CompareTo(object i_Obj) { CustomDate other = i_Obj as CustomDate; return(Date.CompareTo(other.Date)); }