Skip to content

Commit 0481e1b

Browse files
author
Sébastien Geiser
committed
clean warning
1 parent e3dcbfc commit 0481e1b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

CSharpRegexTools4Npp/CSharpRegexTools4Npp.csproj

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,8 @@
7171
<ProjectReference Include="..\RegexDialog\RegexDialog.csproj" />
7272
</ItemGroup>
7373
<ItemGroup>
74-
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="all">
75-
<PrivateAssets>all</PrivateAssets>
76-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
77-
</PackageReference>
78-
<PackageReference Include="Fody" Version="6.8.0" PrivateAssets="all">
79-
<PrivateAssets>all</PrivateAssets>
80-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
81-
</PackageReference>
74+
<PackageReference Include="Costura.Fody" Version="5.7.0" PrivateAssets="all" />
75+
<PackageReference Include="Fody" Version="6.8.0" PrivateAssets="all"/>
8276
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
8377
</ItemGroup>
8478
</Project>

RegexDialog/Utils/ObservableDictionary.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
using PropertyChanged;
2+
using System;
23
using System.Collections;
34
using System.Collections.Generic;
45
using System.Collections.Specialized;
@@ -212,6 +213,7 @@ private void Insert(TKey key, TValue value, bool add)
212213
}
213214
}
214215

216+
[SuppressPropertyChangedWarnings]
215217
private void OnPropertyChanged()
216218
{
217219
OnPropertyChanged(CountString);
@@ -220,29 +222,34 @@ private void OnPropertyChanged()
220222
OnPropertyChanged(ValuesName);
221223
}
222224

225+
[SuppressPropertyChangedWarnings]
223226
protected virtual void OnPropertyChanged(string propertyName)
224227
{
225228
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
226229
}
227230

231+
[SuppressPropertyChangedWarnings]
228232
private void OnCollectionChanged()
229233
{
230234
OnPropertyChanged();
231235
CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
232236
}
233237

238+
[SuppressPropertyChangedWarnings]
234239
private void OnCollectionChanged(NotifyCollectionChangedAction action, KeyValuePair<TKey, TValue> changedItem)
235240
{
236241
OnPropertyChanged();
237242
CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(action, changedItem));
238243
}
239244

245+
[SuppressPropertyChangedWarnings]
240246
private void OnCollectionChanged(NotifyCollectionChangedAction action, KeyValuePair<TKey, TValue> newItem, KeyValuePair<TKey, TValue> oldItem)
241247
{
242248
OnPropertyChanged();
243249
CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(action, newItem, oldItem));
244250
}
245251

252+
[SuppressPropertyChangedWarnings]
246253
private void OnCollectionChanged(NotifyCollectionChangedAction action, IList newItems)
247254
{
248255
OnPropertyChanged();

0 commit comments

Comments
 (0)