-
Notifications
You must be signed in to change notification settings - Fork 924
/
Several.cs
59 lines (48 loc) · 936 Bytes
/
Several.cs
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
namespace NHibernate.DomainModel
{
/// <summary>
/// Summary description for Several.
/// </summary>
[Serializable]
public class Several
{
private string _id;
private string _prop;
private Single _single;
private string _string;
public string Id
{
get { return _id; }
set { _id = value; }
}
public string Prop
{
get { return _prop; }
set { _prop = value; }
}
public Single Single
{
get { return _single; }
set { _single = value; }
}
public string String
{
get { return _string; }
set { _string = value; }
}
#region System.Object members
public override bool Equals(object obj)
{
if (this == obj) return true;
Several rhs = obj as Several;
if (rhs == null) return false;
return (rhs.Id.Equals(this.Id) && rhs.String.Equals(this.String));
}
public override int GetHashCode()
{
return _id.GetHashCode();
}
#endregion
}
}