예제 #1
0
파일: Cell.cs 프로젝트: pwdlugosz/Spectre
 /// <summary>
 /// Checks if two cells are not equal
 /// </summary>
 /// <param name="C1">Left cell</param>
 /// <param name="C2">AWValue cell</param>
 /// <returns>A boolean</returns>
 public static bool operator !=(Cell C1, Cell C2)
 {
     if (C1.NULL == 1 && C2.NULL == 1)
     {
         return(true);
     }
     return(CellComparer.Compare(C1, C2) != 0);
 }
예제 #2
0
파일: Cell.cs 프로젝트: pwdlugosz/Spectre
 /// <summary>
 /// Casts an object as a cell then compares it to the Spike instance
 /// </summary>
 /// <param name="obj">The object being tested for equality</param>
 /// <returns>A boolean indicating both objects are equal</returns>
 public override bool Equals(object obj)
 {
     return(CellComparer.Compare(this, (Cell)obj) == 0);
 }
예제 #3
0
파일: Cell.cs 프로젝트: pwdlugosz/Spectre
 /// <summary>
 /// Checks if C1 is greater than or equal to C2
 /// </summary>
 /// <param name="C1">Left cell</param>
 /// <param name="C2">AWValue cell</param>
 /// <returns>A boolean</returns>
 public static bool operator >=(Cell C1, Cell C2)
 {
     return(CellComparer.Compare(C1, C2) >= 0);
 }