質問編集履歴
2
indent
title
CHANGED
File without changes
|
body
CHANGED
@@ -65,6 +65,7 @@
|
|
65
65
|
という最後の部分、むちゃくちゃ繰り返しで保守性悪そうじゃないですか。
|
66
66
|
で、
|
67
67
|
|
68
|
+
```C#
|
68
69
|
List<WindowProperty> properties = new List<WindowProperty>();
|
69
70
|
properties.Add(MainWindowProperty);
|
70
71
|
properties.Add(SettingWindowProperty);
|
@@ -75,6 +76,9 @@
|
|
75
76
|
foreach (var property in properties)
|
76
77
|
if (this.property != other.property)
|
77
78
|
return false;
|
79
|
+
|
80
|
+
```
|
81
|
+
|
78
82
|
としたら楽かもと考えたのです。
|
79
83
|
ところが、
|
80
84
|
other.propertyでUserSettingにpropertyがないとエラー。
|
1
indent
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
困っているのはEqualsの実装です。
|
7
7
|
|
8
8
|
|
9
|
+
```C#
|
9
10
|
using System.Windows;
|
10
11
|
|
11
12
|
namespace multiwindows
|
@@ -18,9 +19,10 @@
|
|
18
19
|
public double Height { get; set; }
|
19
20
|
}
|
20
21
|
}
|
21
|
-
|
22
|
+
```
|
22
23
|
として。
|
23
24
|
|
25
|
+
```C#
|
24
26
|
namespace multiwindow
|
25
27
|
{
|
26
28
|
using System.Collections.Generic;
|
@@ -57,6 +59,9 @@
|
|
57
59
|
}
|
58
60
|
}
|
59
61
|
|
62
|
+
|
63
|
+
```
|
64
|
+
|
60
65
|
という最後の部分、むちゃくちゃ繰り返しで保守性悪そうじゃないですか。
|
61
66
|
で、
|
62
67
|
|