示例#1
0
 /// <summary>
 /// Indicates whether this instance and a specified Object are equal.
 /// </summary>
 /// <param name="obj">Another Object to compare to.</param>
 /// <returns>
 /// true if <paramref name="obj"/> and this instance are the same type and represent the same value; otherwise, false.
 /// </returns>
 public override Boolean Equals(Object obj)
 {
     if ((obj != null) && (obj is SpaceNegotiation))
     {
         SpaceNegotiation negotiation = (SpaceNegotiation)obj;
         if (negotiation.Size == this.Size)
         {
             return(negotiation.TextPosition == this.TextPosition);
         }
     }
     return(false);
 }
		private Int32 Comparison(SpaceNegotiation x, SpaceNegotiation y)
		{
			return (x.TextPosition.Position - y.TextPosition.Position);
		}
示例#3
0
 private Int32 Comparison(SpaceNegotiation x, SpaceNegotiation y)
 {
     return(x.TextPosition.Position - y.TextPosition.Position);
 }