Cleanup some warnings.
This commit is contained in:
@@ -293,7 +293,7 @@ namespace System.Collections
|
||||
|
||||
public Object Clone()
|
||||
{
|
||||
BitSet bitArray = new BitSet(_mArray);
|
||||
BitSet bitArray = new(_mArray);
|
||||
bitArray._version = _version;
|
||||
bitArray._mLength = _mLength;
|
||||
return bitArray;
|
||||
|
||||
@@ -66,8 +66,8 @@ namespace Framework.Collections
|
||||
|
||||
public class LinkedListHead
|
||||
{
|
||||
LinkedListElement _iFirst = new LinkedListElement();
|
||||
LinkedListElement _iLast = new LinkedListElement();
|
||||
LinkedListElement _iFirst = new();
|
||||
LinkedListElement _iLast = new();
|
||||
uint _iSize;
|
||||
|
||||
public LinkedListHead()
|
||||
|
||||
@@ -181,7 +181,7 @@ namespace System.Collections.Generic
|
||||
{
|
||||
get
|
||||
{
|
||||
List<TValue> retVal = new List<TValue>();
|
||||
List<TValue> retVal = new();
|
||||
foreach (var item in _interalStorage)
|
||||
{
|
||||
retVal.AddRange(item.Value);
|
||||
@@ -194,7 +194,7 @@ namespace System.Collections.Generic
|
||||
{
|
||||
get
|
||||
{
|
||||
List<KeyValuePair<TKey, TValue>> retVal = new List<KeyValuePair<TKey, TValue>>();
|
||||
List<KeyValuePair<TKey, TValue>> retVal = new();
|
||||
foreach (var pair in _interalStorage)
|
||||
{
|
||||
foreach (var value in pair.Value)
|
||||
@@ -259,7 +259,7 @@ namespace System.Collections.Generic
|
||||
return new MultiMapEnumerator<TKey, TValue>(this);
|
||||
}
|
||||
|
||||
private Dictionary<TKey, List<TValue>> _interalStorage = new Dictionary<TKey, List<TValue>>();
|
||||
private Dictionary<TKey, List<TValue>> _interalStorage = new();
|
||||
}
|
||||
|
||||
public sealed class SortedMultiMap<TKey, TValue> : IMultiMap<TKey, TValue>, IDictionary<TKey, TValue>
|
||||
@@ -424,7 +424,7 @@ namespace System.Collections.Generic
|
||||
{
|
||||
get
|
||||
{
|
||||
List<TValue> retVal = new List<TValue>();
|
||||
List<TValue> retVal = new();
|
||||
foreach (var item in _interalStorage)
|
||||
{
|
||||
retVal.AddRange(item.Value);
|
||||
@@ -437,7 +437,7 @@ namespace System.Collections.Generic
|
||||
{
|
||||
get
|
||||
{
|
||||
List<KeyValuePair<TKey, TValue>> retVal = new List<KeyValuePair<TKey, TValue>>();
|
||||
List<KeyValuePair<TKey, TValue>> retVal = new();
|
||||
foreach (var pair in _interalStorage)
|
||||
{
|
||||
foreach (var value in pair.Value)
|
||||
@@ -502,6 +502,6 @@ namespace System.Collections.Generic
|
||||
return new SortedMultiMapEnumerator<TKey, TValue>(this);
|
||||
}
|
||||
|
||||
private SortedDictionary<TKey, List<TValue>> _interalStorage = new SortedDictionary<TKey, List<TValue>>();
|
||||
private SortedDictionary<TKey, List<TValue>> _interalStorage = new();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user