PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/TimeSheetReporting/TimeSheetReporting.Web/Model/Member.Shared.cs

#
C# | 23 lines | 21 code | 2 blank | 0 comment | 4 complexity | 9086bd240a091afc35b0c678be64cd56 MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Web;
 5
 6namespace TimeSheetReporting.Web.Model
 7{
 8    public partial class Member
 9    {
10        public override bool Equals(object obj)
11        {
12            if (obj == null) return false;
13            Member merberToCompare = obj as Member;
14            if (merberToCompare == null) return false;
15            return Id.Equals(merberToCompare.Id);
16        }
17
18        public override int GetHashCode()
19        {
20            return Id.GetHashCode();
21        }
22    }
23}