コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = GuidQuery.GetHashCode();
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DirectionTime != null ? DirectionTime.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Interval != null ? Interval.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IntervalCount;
         hashCode = (hashCode * 397) ^ Offset;
         hashCode = (hashCode * 397) ^ GuidTrigger.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
 protected bool Equals(QueryCondition other)
 {
     return(GuidQuery.Equals(other.GuidQuery) && string.Equals(Name, other.Name) && string.Equals(DirectionTime, other.DirectionTime) && string.Equals(Interval, other.Interval) && IntervalCount == other.IntervalCount && Offset == other.Offset && GuidTrigger.Equals(other.GuidTrigger));
 }