11using System . Collections ;
22using System . Collections . ObjectModel ;
33
4- namespace RelogicLabs . JsonSchema . Collections ;
4+ namespace RelogicLabs . JSchema . Collections ;
55
66internal sealed class IndexHashMap < TK , TV > : IIndexMap < TK , TV >
77 where TV : IKeyed < TK > where TK : notnull
@@ -12,7 +12,7 @@ internal sealed class IndexHashMap<TK, TV> : IIndexMap<TK, TV>
1212 public IndexHashMap ( IEnumerable < TV > source )
1313 {
1414 _list = source . ToList ( ) ;
15- _dictionary = _list . ToDictionary ( e => e . Key , e => e ) ;
15+ _dictionary = _list . ToDictionary ( static e => e . Key , static e => e ) ;
1616 }
1717
1818 public IEnumerator < TV > GetEnumerator ( ) => _list . GetEnumerator ( ) ;
@@ -25,7 +25,7 @@ public void Add(TV item)
2525
2626 public bool Remove ( TV item )
2727 {
28- bool result = _list . Remove ( item ) ;
28+ var result = _list . Remove ( item ) ;
2929 result &= _dictionary . Remove ( item . Key ) ;
3030 return result ;
3131 }
@@ -50,7 +50,7 @@ public void Insert(int index, TV item)
5050
5151 public void RemoveAt ( int index )
5252 {
53- TV item = _list [ index ] ;
53+ var item = _list [ index ] ;
5454 _list . RemoveAt ( index ) ;
5555 _dictionary . Remove ( item . Key ) ;
5656 }
0 commit comments