mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
CA1715: use prefix for generic parameters.
This commit is contained in:
@ -116,13 +116,13 @@ namespace osu.Game.IO.Legacy
|
||||
}
|
||||
|
||||
/// <summary> Reads a generic Dictionary from the buffer. </summary>
|
||||
public IDictionary<T, U> ReadDictionary<T, U>()
|
||||
public IDictionary<TKey, TValue> ReadDictionary<TKey, TValue>()
|
||||
{
|
||||
int count = ReadInt32();
|
||||
if (count < 0) return null;
|
||||
|
||||
IDictionary<T, U> d = new Dictionary<T, U>();
|
||||
for (int i = 0; i < count; i++) d[(T)ReadObject()] = (U)ReadObject();
|
||||
IDictionary<TKey, TValue> d = new Dictionary<TKey, TValue>();
|
||||
for (int i = 0; i < count; i++) d[(TKey)ReadObject()] = (TValue)ReadObject();
|
||||
return d;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user