Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (InternalNumber != null ? InternalNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CoCode != null ? CoCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CdCode.GetHashCode();
         hashCode = (hashCode * 397) ^ (Duration != null ? Duration.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Cost != null ? Cost.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 protected bool Equals(CdCode other)
 {
     return(Value == other.Value);
 }
Ejemplo n.º 3
0
 protected bool Equals(CallData other)
 {
     return(DateTime.Equals(other.DateTime) && Equals(InternalNumber, other.InternalNumber) && Equals(CoCode, other.CoCode) && CdCode.Equals(other.CdCode) && Equals(Duration, other.Duration) && Equals(Cost, other.Cost));
 }