forked from BornToBeRoot/NETworkManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplicationViewInfo.cs
More file actions
48 lines (37 loc) · 1.04 KB
/
Copy pathApplicationViewInfo.cs
File metadata and controls
48 lines (37 loc) · 1.04 KB
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
using System;
namespace NETworkManager
{
public class ApplicationViewInfo : IEquatable<ApplicationViewInfo>
{
public ApplicationViewManager.Name Name { get; set; }
public bool IsVisible { get; set; }
public ApplicationViewInfo()
{
}
public ApplicationViewInfo(ApplicationViewManager.Name name)
{
Name = name;
IsVisible = true;
}
public bool Equals(ApplicationViewInfo info)
{
if (info == null)
return false;
return Name == info.Name;
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj))
return false;
if (ReferenceEquals(this, obj))
return true;
if (obj.GetType() != GetType())
return false;
return Equals(obj as ApplicationViewInfo);
}
public override int GetHashCode()
{
return Name.GetHashCode();
}
}
}