-
-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathStackFrame.cs
More file actions
30 lines (26 loc) · 963 Bytes
/
Copy pathStackFrame.cs
File metadata and controls
30 lines (26 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
namespace Exceptionless.Models.Data {
public class StackFrame : Method {
public string FileName { get; set; }
public int LineNumber { get; set; }
public int Column { get; set; }
protected bool Equals(StackFrame other) {
return base.Equals(other) && string.Equals(FileName, other.FileName);
}
public override bool Equals(object obj) {
if (ReferenceEquals(null, obj))
return false;
if (ReferenceEquals(this, obj))
return true;
if (obj.GetType() != this.GetType())
return false;
return Equals((StackFrame)obj);
}
public override int GetHashCode() {
unchecked {
int hashCode = base.GetHashCode();
hashCode = (hashCode * 397) ^ (FileName == null ? 0 : FileName.GetHashCode());
return hashCode;
}
}
}
}