Created
July 21, 2014 07:21
-
-
Save yemrekeskin/a3c8ee8639d6d1e04cb3 to your computer and use it in GitHub Desktop.
override Equals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CronLog | |
:BaseModel | |
{ | |
public int ProcessId { get; set; } | |
public string ProcessName { get; set; } | |
public DateTime RequestTime { get; set; } | |
public DateTime ActualRequestTime { get; set; } | |
public DateTime ResponseTime { get; set; } | |
public int ResponseCode { get; set; } | |
public string ExceptionMessage { get; set; } | |
public string Response { get; set; } | |
public string Url { get; set; } | |
public override bool Equals(object obj) | |
{ | |
if (ReferenceEquals(null, obj)) return false; | |
if (ReferenceEquals(this, obj)) return true; | |
if (obj.GetType() != typeof(CronLog)) return false; | |
return Equals((CronLog)obj); | |
} | |
public bool Equals(CronLog other) | |
{ | |
if (ReferenceEquals(null, other)) return false; | |
if (ReferenceEquals(this, other)) return true; | |
return other.GetHashCode() == this.GetHashCode(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment