hytos / ID2.Manager / ID2.Manager.Data / Models / MarkupText.cs @ fe57f64a
이력 | 보기 | 이력해설 | 다운로드 (669 Bytes)
1 | c0b49a75 | taeseongkim | using System; |
---|---|---|---|
2 | using System.Collections; |
||
3 | using System.Collections.Generic; |
||
4 | using System.Linq; |
||
5 | using System.Text; |
||
6 | using System.Threading.Tasks; |
||
7 | |||
8 | namespace ID2.Manager.Data.Models |
||
9 | { |
||
10 | public class MarkupText : IEquatable<MarkupText> |
||
11 | { |
||
12 | 23527891 | taeseongkim | public string DocumentNo { get; set; } |
13 | |||
14 | c0b49a75 | taeseongkim | public string Text { get; set; } |
15 | public DateTime Date { get; set; } |
||
16 | |||
17 | |||
18 | public bool Equals(MarkupText other) |
||
19 | { |
||
20 | return other != null && other.Text == this.Text && other.Date == this.Date; |
||
21 | } |
||
22 | |||
23 | public override int GetHashCode() |
||
24 | { |
||
25 | return this.Text.GetHashCode() + this.Date.GetHashCode(); |
||
26 | } |
||
27 | } |
||
28 | } |