public virtual int CompareTo(object o) { if (o is Comment) { return(Created.CompareTo(((Comment)o).Created)); } return(0); }
public virtual int CompareTo(object o) { if (o is User) { return(Created.CompareTo(((User)o).Created)); } return(0); }
public virtual int CompareTo(object o) { if (o is Item) { return(Created.CompareTo(((Item)o).Created)); } return(0); }
public virtual int CompareTo(object o) { // Billing Details are simply sorted by creation date if (o is BillingDetails) { return(Created.CompareTo(((BillingDetails)o).Created)); } return(0); }
public int CompareTo(Transaction other) { var result = TransactionDate.Date.CompareTo(other.TransactionDate.Date); if (result == 0) { result = Created.CompareTo(other.Created); } return(result); }
public int CompareTo(FacebookPhoto other) { if (other == null) { return(1); } // Photos should sort newest first. return(-Created.CompareTo(other.Created)); }
public int CompareTo(ActivityPost other) { if (other == null) { return(1); } // Sort ActivityPosts newest first. return(-Created.CompareTo(other.Created)); }
/// <summary> /// Base override /// </summary> public int CompareTo(Object obj) { int result = 0; if (obj is DataObject) { DataObject other = (DataObject)obj; result = Created.CompareTo(other.Created) * (-1); } return(result); }
public int CompareTo(object other) { Clip otherClip = other as Clip; if (otherClip == null) { return(1); } return(Created.CompareTo(otherClip.Created)); }
/// <summary> /// Base override /// </summary> public int CompareTo(Object obj) { int result = 0; DomainObject otherDomainObject = obj as DomainObject; if (otherDomainObject != null) { result = Created.CompareTo(otherDomainObject.Created) * (-1); } return(result); }
/* Make objects Sortable and Comparable */ public int CompareTo(object obj) { if (obj == null) { return(1); } var up = obj as Update; if (up != null) { return(Created.CompareTo(up.Created)); } throw new ArgumentException("Object is not an Update"); }
/// <summary> /// Base override /// </summary> public int CompareTo(Object obj) { int result = 0; DomainObject <T, I> otherDomainObject = obj as DomainObject <T, I>; if (otherDomainObject != null) { result = ID.CompareTo(otherDomainObject.ID); if (result == 0) { result = Created.CompareTo(otherDomainObject.Created); if (result == 0) { result = Modified.CompareTo(otherDomainObject.Modified); } } } return(result); }
public int CompareTo(object obj) { var item = obj as IItem; if (item != null) { if (IsNew && item.IsNew) { return(0); } else { return(Created.CompareTo(item.Created)); } } if (obj is ItemReference) { return(-1); } return(0); }
public int CompareTo(CustomClass other) { return(Created.CompareTo(other.Created)); }
public int CompareTo(Version other) { return(Created.CompareTo(other.Created)); }
public int CompareTime(Property b) { return(Created.CompareTo(b.Created)); }