• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Cysharp/ObservableCollections をベースにしたUI表示用の同期ビュー


Commit MetaInfo

修订版87a8ee4d858ecff8f6b35b7fd7fc72a5882fadbf (tree)
时间2022-10-20 15:32:38
作者yoshy <yoshy.org.bitbucket@gz.j...>
Commiteryoshy

Log Message

[MOD] ビュー破棄時のトレースログを無効化

更改概述

差异

--- a/Internal/SortableSynchronizedCoupleView.cs
+++ b/Internal/SortableSynchronizedCoupleView.cs
@@ -1,4 +1,5 @@
1-#if DEBUG
1+//#define TRACE_DISPOSE
2+#if DEBUG && TRACE_DISPOSE
23 using NLog;
34 #endif
45 using ObservableCollections;
@@ -11,7 +12,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
1112 ISortableSynchronizedCoupleView<T, TKey, TView>
1213 where TKey : notnull
1314 {
14-#if DEBUG
15+#if DEBUG && TRACE_DISPOSE
1516 private static readonly ILogger logger = LogManager.GetCurrentClassLogger();
1617 #endif
1718
@@ -120,13 +121,13 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
120121 {
121122 if (disposing)
122123 {
123-#if DEBUG
124+#if DEBUG && TRACE_DISPOSE
124125 logger.Trace("{0} disposing SortableSynchronizedCoupleView...", GetType().FullName);
125126 #endif
126127
127128 DisconnectSource();
128129
129-#if DEBUG
130+#if DEBUG && TRACE_DISPOSE
130131 logger.Trace("{0} SortableSynchronizedCoupleView disposed.", GetType().FullName);
131132 #endif
132133 }
@@ -183,7 +184,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
183184
184185 lock (this.SyncRoot)
185186 {
186-#if DEBUG
187+#if DEBUG && TRACE_DISPOSE
187188 logger.Trace("{0} disconnect from source.", GetType().FullName);
188189 #endif
189190
@@ -191,7 +192,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
191192
192193 if (this.disposeElement)
193194 {
194-#if DEBUG
195+#if DEBUG && TRACE_DISPOSE
195196 logger.Trace("{0} (T, TView) elements disposing...", GetType().FullName);
196197 #endif
197198
@@ -203,7 +204,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
203204 }
204205 }
205206
206-#if DEBUG
207+#if DEBUG && TRACE_DISPOSE
207208 logger.Trace("{0} (T, TView) elements disposed.", GetType().FullName);
208209 #endif
209210 }
--- a/Internal/SynchronizedCoupleView.cs
+++ b/Internal/SynchronizedCoupleView.cs
@@ -1,4 +1,5 @@
1-#if DEBUG
1+//#define TRACE_DISPOSE
2+#if DEBUG && TRACE_DISPOSE
23 using NLog;
34 #endif
45 using ObservableCollections;
@@ -10,7 +11,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
1011 {
1112 internal sealed class SynchronizedCoupleView<T, TView> : ISynchronizedCoupleView<T, TView>
1213 {
13-#if DEBUG
14+#if DEBUG && TRACE_DISPOSE
1415 private static readonly ILogger logger = LogManager.GetCurrentClassLogger();
1516 #endif
1617
@@ -117,13 +118,13 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
117118 {
118119 if (disposing)
119120 {
120-#if DEBUG
121+#if DEBUG && TRACE_DISPOSE
121122 logger.Trace("{0} disposing CoupleView...", GetType().FullName);
122123 #endif
123124
124125 DisconnectSource();
125126
126-#if DEBUG
127+#if DEBUG && TRACE_DISPOSE
127128 logger.Trace("{0} CoupleView disposed.", GetType().FullName);
128129 #endif
129130 }
@@ -168,7 +169,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
168169
169170 lock (this.SyncRoot)
170171 {
171-#if DEBUG
172+#if DEBUG && TRACE_DISPOSE
172173 logger.Trace("{0} disconnect from source.", GetType().FullName);
173174 #endif
174175
@@ -176,7 +177,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
176177
177178 if (this.disposeElement)
178179 {
179-#if DEBUG
180+#if DEBUG && TRACE_DISPOSE
180181 logger.Trace("{0} (T, TView) elements disposing...", this.GetType().FullName);
181182 #endif
182183
@@ -187,7 +188,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
187188 disposable.Dispose();
188189 }
189190 }
190-#if DEBUG
191+#if DEBUG && TRACE_DISPOSE
191192 logger.Trace("{0} (T, TView) elements disposed.", this.GetType().FullName);
192193 #endif
193194 }
--- a/Internal/SynchronizedSingleView.NCCListView.cs
+++ b/Internal/SynchronizedSingleView.NCCListView.cs
@@ -1,4 +1,5 @@
1-#if DEBUG
1+//#define TRACE_DISPOSE
2+#if DEBUG && TRACE_DISPOSE
23 using NLog;
34 #endif
45 using ObservableCollections;
@@ -17,7 +18,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
1718
1819 class NCCListView : INotifyCollectionChangedListSynchronizedSingleView<T, TView>
1920 {
20-#if DEBUG
21+#if DEBUG && TRACE_DISPOSE
2122 private static readonly ILogger logger = LogManager.GetCurrentClassLogger();
2223 #endif
2324
@@ -125,18 +126,18 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
125126
126127 public void Dispose()
127128 {
128-#if DEBUG
129+#if DEBUG && TRACE_DISPOSE
129130 logger.Trace("{0} disposing NCCListSingleView...", this.GetType().FullName);
130131 #endif
131132 this.parent.RoutingCollectionChanged -= Parent_RoutingCollectionChanged;
132133
133-#if DEBUG
134+#if DEBUG && TRACE_DISPOSE
134135 logger.Trace("{0} parent disposing...", this.GetType().FullName);
135136 #endif
136137
137138 parent.Dispose();
138139
139-#if DEBUG
140+#if DEBUG && TRACE_DISPOSE
140141 logger.Trace("{0} parent and NCCListSingleView disposed.", this.GetType().FullName);
141142 #endif
142143 }
--- a/Internal/SynchronizedSingleView.cs
+++ b/Internal/SynchronizedSingleView.cs
@@ -1,4 +1,5 @@
1-#if DEBUG
1+//#define TRACE_DISPOSE
2+#if DEBUG && TRACE_DISPOSE
23 using NLog;
34 #endif
45 using ObservableCollections;
@@ -10,7 +11,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
1011 {
1112 internal sealed partial class SynchronizedSingleView<T, TView> : ISynchronizedSingleView<T, TView>
1213 {
13-#if DEBUG
14+#if DEBUG && TRACE_DISPOSE
1415 private static readonly ILogger logger = LogManager.GetCurrentClassLogger();
1516 #endif
1617
@@ -70,7 +71,7 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
7071
7172 public void Dispose()
7273 {
73-#if DEBUG
74+#if DEBUG && TRACE_DISPOSE
7475 logger.Trace("{0} disposing SingleView...", this.GetType().FullName);
7576 #endif
7677
@@ -78,18 +79,18 @@ namespace CleanAuLait.ObservableCollectionsMod.Internal
7879
7980 if (this.disposeParent)
8081 {
81-#if DEBUG
82+#if DEBUG && TRACE_DISPOSE
8283 logger.Trace("{0} parent disposing...", this.GetType().FullName);
8384 #endif
8485
8586 this.parent.Dispose();
8687
87-#if DEBUG
88+#if DEBUG && TRACE_DISPOSE
8889 logger.Trace("{0} parent disposed.", this.GetType().FullName);
8990 #endif
9091 }
9192
92-#if DEBUG
93+#if DEBUG && TRACE_DISPOSE
9394 logger.Trace("{0} SingleView disposed.", this.GetType().FullName);
9495 #endif
9596 }