1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Xml . Serialization ;
1
+ using System . Collections . Generic ;
4
2
using ArchiMetrics . Common . Metrics ;
5
3
6
4
namespace MetricsExtractor . Custom
7
5
{
8
- [ Serializable ]
9
6
public class TypeMetricWithNamespace : ITypeMetric
10
7
{
11
8
public TypeMetricWithNamespace ( ITypeMetric typeMetric )
@@ -19,7 +16,6 @@ public TypeMetricWithNamespace(ITypeMetric typeMetric)
19
16
}
20
17
}
21
18
22
- [ XmlIgnore ]
23
19
public IEnumerable < ITypeCoupling > ClassCouplings { get ; private set ; }
24
20
25
21
public int LinesOfCode { get ; private set ; }
@@ -32,13 +28,10 @@ public TypeMetricWithNamespace(ITypeMetric typeMetric)
32
28
33
29
public string Name { get ; private set ; }
34
30
35
- [ XmlIgnore ]
36
31
public AccessModifierKind AccessModifier { get ; private set ; }
37
32
38
- [ XmlIgnore ]
39
33
public TypeMetricKind Kind { get ; private set ; }
40
34
41
- [ XmlIgnore ]
42
35
public IEnumerable < IMemberMetric > MemberMetrics { get ; private set ; }
43
36
44
37
public int DepthOfInheritance { get ; private set ; }
@@ -54,7 +47,7 @@ public TypeMetricWithNamespace(ITypeMetric typeMetric)
54
47
public bool IsAbstract { get ; private set ; }
55
48
56
49
public string Namespace { get ; private set ; }
57
-
50
+
58
51
public string FullName { get { return string . Format ( "{0}.{1}" , Namespace , Name ) ; } }
59
52
60
53
public ClassRank Rank { get ; private set ; }
@@ -79,11 +72,11 @@ public override bool Equals(object obj)
79
72
80
73
return typeMetric . FullName == FullName ;
81
74
}
82
-
75
+
83
76
public override int GetHashCode ( )
84
77
{
85
78
// TODO: write your implementation of GetHashCode() here
86
79
return FullName . GetHashCode ( ) ;
87
80
}
88
81
}
89
- }
82
+ }
0 commit comments