Exemple #1
0
 public bool Equals(ContextPair o)
 {
     if (this == o)
     {
         return(true);
     }
     return(LeftContext.Equals(o.LeftContext) && RightContext.Equals(o.RightContext));
 }
Exemple #2
0
 /**
  * /// Determines if the given object is equal to this UnitContext
  *
  * /// @param o the object to compare to
  * /// @return <code>true</code> if the objects are equal return;
  */
 public override bool Equals(Object o)
 {
     if (this == o)
     {
         return(true);
     }
     else if (o is ContextPair)
     {
         ContextPair other = (ContextPair)o;
         return(LeftContext.Equals(other.LeftContext) && RightContext.Equals(other.RightContext));
     }
     return(false);
 }